Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)kill.2 4.1 (Berkeley) 05/09/85
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.
@(#)kill.2 4.1 (Berkeley) 05/09/85
KILL 2 5/11/81
C 4 NAME
kill - send signal to a process
SYNOPSIS
kill(pid, sig) DESCRIPTION
Kill sends the signal
sig to the process specified by the
process number
pid. See
sigsys (2) for a list of signals.
The sending and receiving processes must have the same effective user ID, otherwise this call is restricted to the super-user. (A single exception is the signal SIGCONT which may be sent as described in killpg (2), although it is usually sent using killpg rather than kill ).
If the process number is 0, the signal is sent to all other processes in the sender's process group; see tty (4) and also killpg (2).
If the process number is -1, and the user is the super-user, the signal is broadcast universally except to processes 0, 1, 2, the scheduler initialization, and pageout processes, and the process sending the signal.
Processes may send signals to themselves.
"SEE ALSO"
sigsys(2), signal(2), kill(1), killpg(2), init(8)
DIAGNOSTICS
Zero is returned if the process is killed;
-1 is returned if the process does not
have the same effective user ID and the
user is not super-user, or if the process
does not exist.
"ASSEMBLER (PDP-11)"
(kill = 37.)
(process number in r0)
sys kill; sig