-
The kill function can be used by a process to send a signal to another process or even to itself:
int kill(pid_t pid, int sig)
-
If the process id of some process is also the process group id, then using the negative value of the process id in the kill function will send the signal to all processes in the process group.