Copyright (C) 2000-2012 |
Manpages KILLSection: Linux Programmer's Manual (2)Updated: 1997-09-14 Index Return to Main Contents NAMEkill - send signal to a processSYNOPSIS#include <sys/types.h> 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. If sig is 0, then no signal is sent, but error checking is still performed. RETURN VALUEOn success, zero is returned. On error, -1 is returned, and errno is set appropriately.ERRORS
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.3SEE ALSO_exit(2), exit(3), signal(2), signal(7)
IndexThis document was created by man2html, using the manual pages. Time: 11:25:11 GMT, December 14, 2024 |