fixed it to work on terminals with over 48 lines, and fixed bug
[unix-history] / .ref-BSD-3 / usr / man / man2 / kill.2
CommitLineData
3eedd6d3
BJ
1.TH KILL 2
2.SH NAME
3kill \- send signal to a process
4.SH SYNOPSIS
5.B kill(pid, sig);
6.SH DESCRIPTION
7.I Kill
8sends the signal
9.I sig
10to the process specified by the
11process number in r0.
12See
13.IR signal (2)
14for a list of signals.
15.PP
16The sending and receiving processes must
17have the same effective user ID, otherwise
18this call is restricted to the super-user.
19.PP
20If the process number is 0,
21the signal is sent to all other processes in the
22sender's process group;
23see
24.IR tty (4).
25.PP
26If the process number is \-1, and the user is the super-user,
27the signal is broadcast universally
28except to processes 0 and 1, the scheduler
29and initialization processes,
30see
31.IR init (8).
32.PP
33Proccesses may send signals to themselves.
34.SH "SEE ALSO"
35signal(2), kill(1)
36.SH DIAGNOSTICS
37Zero is returned if the process is killed;
38\-1 is returned if the process does not
39have the same effective user ID and the
40user is not super-user, or if the process
41does not exist.
42.SH "ASSEMBLER (PDP-11)"
43(kill = 37.)
44.br
45(process number in r0)
46.br
47.B sys kill; sig