


      KKKKIIIILLLLLLLL((((2222))))                     ((((UUUUNNNNIIIIXXXX 5555....0000))))                    KKKKIIIILLLLLLLL((((2222))))



      NNNNAAAAMMMMEEEE
           kill - send a signal to a process or a group of processes

      SSSSYYYYNNNNTTTTAAAAXXXX
           iiiinnnntttt kkkkiiiillllllll ((((ppppiiiidddd,,,, ssssiiiigggg))))
           iiiinnnntttt ppppiiiidddd,,,, ssssiiiigggg;;;;

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           _K_i_l_l sends a signal to a process or a group of processes.
           The process or group of processes to which the signal is to
           be sent is specified by _p_i_d.  The signal that is to be sent
           is specified by _s_i_g and is either one from the list given in
           _s_i_g_n_a_l(2), or 0.  If _s_i_g is 0 (the null signal), error
           checking is performed but no signal is actually sent.  This
           can be used to check the validity of _p_i_d.

           The real or effective user ID of the sending process must
           match the real or effective user ID of the receiving process
           unless, the effective user ID of the sending process is
           super-user.

           The process with a process ID of 0 ID is a special process
           (see _i_n_t_r_o(2)) and will be referred to below as _p_r_o_c_0.

           If _p_i_d is greater than zero, _s_i_g will be sent to the process
           whose process ID is equal to _p_i_d.

           If _p_i_d is 0, _s_i_g will be sent to all processes excluding
           _p_r_o_c_0 whose process group ID is equal to the process group
           ID of the sender.

           If _p_i_d is -1 and the effective user ID of the sender is not
           super-user, _s_i_g will be sent to all processes excluding
           _p_r_o_c_0 whose real user ID is equal to the effective user ID
           of the sender.

           If _p_i_d is -1 and the effective user ID of the sender is
           super-user, _s_i_g will be sent to all processes excluding
           _p_r_o_c_0.

           If _p_i_d is negative but not -1, _s_i_g will be sent to all
           processes whose process group ID is equal to the absolute
           value of _p_i_d.

           _K_i_l_l will fail and no signal will be sent if one or more of
           the following are true:

                _S_i_g is not a valid signal number.  [EINVAL]

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




      Page 1                                                   (9010-E)






      KKKKIIIILLLLLLLL((((2222))))                     ((((UUUUNNNNIIIIXXXX 5555....0000))))                    KKKKIIIILLLLLLLL((((2222))))



                The user ID of the sending process is not super-user,
                and its real or effective user ID does not match the
                real or effective user ID of the receiving process.
                [EPERM]

      RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
           Upon successful completion, a value of 0 is returned.
           Otherwise, a value of -1 is returned and _e_r_r_n_o is set to
           indicate the error.

      SSSSEEEEEEEE AAAALLLLSSSSOOOO
           kill(1), getpid(2), signal(2).











































      Page 2                                                   (9010-E)



