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

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


KILL(2)             UNIX Programmer's Manual              KILL(2)

NAME
     kill  -  send signal to a process

SYNOPSIS
     kill(pid, sig);

DESCRIPTION
     _K_i_l_l sends the signal _s_i_g to the process with process id
     _p_i_d.  See _s_i_g_n_a_l(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.

     If _p_i_d is 0, the signal is sent to all other processes in
     the sender's process group; see _t_t_y(4).

     If _p_i_d 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 _i_n_i_t(8)).

     Processes may send signals to themselves.

RETURN VALUE
     Upon successful completion, a value of 0 is returned.  Oth-
     erwise, a value of -1 is returned and _e_r_r_n_o is set to indi-
     cate the error.

ERRORS
     _K_i_l_l will fail and no signal will be sent if any of the fol-
     lowing occur:

     [EINVAL]            _S_i_g is not a valid signal number.

     [ESRCH]             No process can be found corresponding to
                         that specified by _p_i_d.

SEE ALSO
     kill(1), signal(2)

ASSEMBLER
     (kill = 37.)
     (process number in r0)
     sys kill; sig

Printed 7/30/83                                                 1