1KILL(2)                       System Calls Manual                      KILL(2)
2
3
4

NAME

6       kill  -  send signal to a process
7

SYNOPSIS

9       kill(pid, sig);
10

DESCRIPTION

12       Kill  sends the signal sig to the process specified by the process num‐
13       ber in r0.  See signal(2) for a list of signals.
14
15       The sending and receiving processes must have the same  effective  user
16       ID, otherwise this call is restricted to the super-user.
17
18       If  the  process number is 0, the signal is sent to all other processes
19       in the sender's process group; see tty(4).
20
21       If the process number is -1, and the user is the super-user, the signal
22       is broadcast universally except to processes 0 and 1, the scheduler and
23       initialization processes, see init(8).
24
25       Processes may send signals to themselves.
26

SEE ALSO

28       signal(2), kill(1)
29

DIAGNOSTICS

31       Zero is returned if the process  is  killed;  -1  is  returned  if  the
32       process  does  not  have the same effective user ID and the user is not
33       super-user, or if the process does not exist.
34

ASSEMBLER

36       (kill = 37.)
37       (process number in r0)
38       sys kill; sig
39
40
41
42                                                                       KILL(2)
Impressum