mirror of https://git.musl-libc.org/git/musl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
153 B
11 lines
153 B
#include <signal.h>
|
|
#include <errno.h>
|
|
|
|
int killpg(pid_t pgid, int sig)
|
|
{
|
|
if (pgid < 0) {
|
|
errno = EINVAL;
|
|
return -1;
|
|
}
|
|
return kill(-pgid, sig);
|
|
}
|
|
|