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 pgrp
() sends the signal to the sending
process's process group.
The sending process must be able to
least one process in the receiving process group.
() function returns the
value 0 if successful; otherwise the value -1 is returned and
the global variable errno
is set to indicate
() function will fail and no signal
will be sent if:
- The sig argument is not a valid signal
- No process can be found in the process group specified by
kill() returns EPERM for all processes
in the process group.
() function appeared in