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