mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-01 04:17:02 -05:00
Add new os_kill
This commit is contained in:
parent
b0a3d9d413
commit
ca5ad2f842
3 changed files with 25 additions and 0 deletions
|
|
@ -1308,6 +1308,12 @@ int os_term(pid_t pid)
|
|||
return kill(-pid, SIGTERM);
|
||||
}
|
||||
|
||||
int os_kill(pid_t pid)
|
||||
{
|
||||
/* Send SIGKILL signal to the negative PID to target the entire Process Group */
|
||||
return kill(-pid, SIGKILL);
|
||||
}
|
||||
|
||||
int os_spawn_and_wait(const char** argv)
|
||||
{
|
||||
pid_t pid = os_spawn((char**)argv, 0, 0, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue