kill 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .TH KILL 1
  2. .SH NAME
  3. kill, slay, broke \- print commands to kill processes
  4. .SH SYNOPSIS
  5. .B kill
  6. .I name ...
  7. .PP
  8. .B slay
  9. .I name ...
  10. .PP
  11. .B broke
  12. [
  13. .I user
  14. ]
  15. .SH DESCRIPTION
  16. .I Kill
  17. prints commands that will cause all processes called
  18. .I name
  19. and owned by the current user to be terminated.
  20. Use the
  21. .B send
  22. command of
  23. .IR rio (1),
  24. or pipe the output of
  25. .I kill
  26. into
  27. .IR rc (1)
  28. to execute the commands.
  29. .PP
  30. .I Kill
  31. suggests sending a
  32. .B "kill"
  33. note to the process; the same
  34. message delivered to the process's
  35. .B ctl
  36. file (see
  37. .IR proc (3))
  38. is a surer, if heavy handed, kill,
  39. but is necessary if the offending process is
  40. ignoring notes.
  41. The
  42. .I slay
  43. command prints commands to do this.
  44. .PP
  45. .I Broke
  46. prints commands that will cause all processes
  47. in the
  48. .I Broken
  49. state
  50. and owned by
  51. .I user
  52. (by default, the current user)
  53. to go away.
  54. When a process dies because of an error caught by
  55. the system, it may linger in the
  56. .I Broken
  57. state to allow examination with a debugger.
  58. Executing the commands printed by
  59. .I broke
  60. lets the system reclaim the resources used by
  61. the broken processes.
  62. .SH SOURCE
  63. .B /rc/bin/kill
  64. .br
  65. .B /rc/bin/broke
  66. .SH "SEE ALSO"
  67. .IR ps (1),
  68. .IR stop (1),
  69. .IR notify (2),
  70. .IR proc (3)