2.9BSD/usr/man/man2/kill.2

Compare this file to the similar file:
Show the results in this format:

.TH KILL 2 
.UC
.SH NAME
kill  \-  send signal to a process
.SH SYNOPSIS
.B kill(pid, sig);
.SH DESCRIPTION
.I Kill
sends the signal
.I sig
to the process with process id
.IR pid .
See
.IR signal (2)
for a list of signals.
.PP
The sending and receiving processes must
have the same effective user ID; otherwise
this call is restricted to the super-user.
.PP
If
.I pid
is 0,
the signal is sent to all other processes in the
sender's process group;
see
.IR tty (4).
.PP
If
.I pid
is \-1 and the user is the super-user,
the signal is broadcast universally
except to processes 0 and 1, the scheduler
and initialization processes (see
.IR init (8)).
.PP
Processes may send signals to themselves.
.SH RETURN VALUE
Upon successful completion, a value of 0 is returned.  Otherwise, a
value of \-1 is returned and
.I errno
is set to indicate the error.
.SH ERRORS
.I Kill
will fail and no signal will be sent if any of the following occur:
.TP 20
[EINVAL]
.I Sig
is not a valid signal number.
.TP 20
[ESRCH]
No process can be found corresponding to that specified by
.IR pid .
.SH "SEE ALSO"
kill(1), signal(2)
.SH ASSEMBLER
(kill = 37.)
.br
(process number in r0)
.br
.B sys kill; sig