KILLSection: Linux Programmer's Manual (2)
Return to Main Contents
NAMEkill - send signal to a process
DESCRIPTIONThe kill system call can be used to send any signal to any process group or process.
If pid is positive, then signal sig is sent to pid.
If pid equals 0, then sig is sent to every process in the process group of the current process.
If pid equals -1, then sig is sent to every process except for the first one.
If pid is less than -1, then sig is sent to every process in the process group -pid.
RETURN VALUEOn success, zero is returned. On error, -1 is returned, and errno is set appropriately.
BUGSIt is impossible to send a signal to task number one, the init process, for which it has not installed a signal handler. This is done to assure the system is not brought down accidentally.
CONFORMING TOSVr4, SVID, POSIX.1, X/OPEN, BSD 4.3
SEE ALSO_exit(2), exit(3), signal(2), signal(7)
This document was created by man2html, using the manual pages.
Time: 19:36:20 GMT, May 19, 2013