killpg - send a signal to a process group
#include <signal.h> int killpg(pid_t pgrp, int sig);
The killpg() function sends the signal specified by sig to the process group specified by pgrp.If pgrp is greater than 1, killpg ( pgrp, sig ) is equivalent to kill ( -pgrp, sig ) If pgrp is less than or equal to 1, the behaviour of killpg() is undefined.
Refer to kill().
Refer to kill().
None.
None.
None.
getpgid(), getpid(), kill(), raise(), <signal.h>.