Unix |
Unix v6 |
|
![]() |
kill(2) |
![]() |
kill send signal to a process (kill = 37.; not in
assembler)
(process number in r0)
sys kill; sig kill(pid, sig); sends the signal to the
process specified by the process number in r0. See signal
(II) 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 the process
number is 0, the signal is sent to all other processes which
have the same controlling typewriter and user ID. In no case
is it possible for a process to kill itself. signal (II),
kill (I) The error bit (c-bit) is set if the process does
not have the same effective user ID and the user is not
super-user, or if the process does not exist. From C,
−1 is returned.
![]() |
kill(2) | ![]() |