|| FreeBSD System Calls Manual
send signal to a process group
Standard C Library (libc, -lc)
() function sends the signal
to the process group
for a list of signals. If
() sends the signal to the sending process's process group.
The sending process must be able to kill() at least one process in the receiving process group.
RETURN VALUES The
killpg() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable
errno is set to indicate the error.
() function will fail and no signal will be sent if:
sig argument is not a valid signal number.
No process can be found in the process group specified by
kill() returns EPERM for all processes in the process group.
killpg() function appeared in