home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man2 / kill.2 < prev    next >
Encoding:
Text File  |  1975-06-26  |  880 b   |  40 lines

  1. .th KILL II 12/15/74
  2. .sh NAME
  3. kill  \*-  send signal to a process
  4. .sh SYNOPSIS
  5. (kill = 37.; not in assembler)
  6. .br
  7. (process number in r0)
  8. .br
  9. .ft B
  10. sys kill; sig
  11. .s3
  12. kill(pid, sig);
  13. .ft R
  14. .sh DESCRIPTION
  15. .it Kill
  16. sends the signal
  17. .it sig
  18. to the process specified by the
  19. process number in r0.
  20. See signal (II) for a list of signals.
  21. .s3
  22. The sending and receiving processes must
  23. have the same effective user ID, otherwise
  24. this call is restricted to the super-user.
  25. .s3
  26. If the process number is 0,
  27. the signal is sent to all other processes which have the
  28. same controlling typewriter and user ID.
  29. .s3
  30. In no case is it possible for a process to kill itself.
  31. .sh "SEE ALSO"
  32. signal (II), kill (I)
  33. .sh DIAGNOSTICS
  34. The error bit (c-bit)
  35. is set if the process does not
  36. have the same effective user ID and the
  37. user is not super-user, or if the process
  38. does not exist.
  39. From C, \-1 is returned.
  40.