mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Add new os_kill
This commit is contained in:
parent
ac5191dafe
commit
8d1aabdb6b
3 changed files with 40 additions and 0 deletions
7
os/os.h
7
os/os.h
|
|
@ -140,6 +140,13 @@ pid_t os_wait(pid_t pid, int* status);
|
|||
*/
|
||||
int os_term(pid_t pid);
|
||||
|
||||
/**
|
||||
* Forcibly terminate a process.
|
||||
* \param pid Process ID of the process to kill.
|
||||
* \return 0 on success, -1 on failure.
|
||||
*/
|
||||
int os_kill(pid_t pid);
|
||||
|
||||
/**
|
||||
* Fork and execute a verified executable, discarding all I/O.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue