killpgrp
Killpgrp refers to the operation of sending a signal to all processes in a specified process group. In Unix-like systems, process groups are a mechanism used to group related processes (such as the components of a shell pipeline) so signals can be delivered to the entire group as a unit. The effect of killpgrp is to propagate the chosen signal to every member of the target group, subject to the usual rules of signal handling and process privileges.
In practice, there are two common ways to realize a killpgrp. Using the kill system call with
Portability and behavior vary by platform. POSIX defines the negative PID convention for signaling a process
See also: kill, killall, process groups, job control, SIGTERM, SIGKILL.