musl-tcc/src/signal/killpg.c

12 lines
153 B
C
Raw Normal View History

2022-03-20 04:48:53 -04:00
#include <signal.h>
#include <errno.h>
int killpg(pid_t pgid, int sig)
{
if (pgid < 0) {
errno = EINVAL;
return -1;
}
return kill(-pgid, sig);
}