home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / admin / 4802 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  2.1 KB

  1. Xref: sparky comp.unix.admin:4802 comp.sys.hp:9898
  2. Newsgroups: comp.unix.admin,comp.sys.hp,ctp.it
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!haven.umd.edu!wam.umd.edu!ignatz
  4. From: ignatz@wam.umd.edu (Mark J. Sienkiewicz)
  5. Subject: Re: Unkillable processes
  6. Message-ID: <1992Aug31.220514.27783@wam.umd.edu>
  7. Sender: usenet@wam.umd.edu (USENET News system)
  8. Nntp-Posting-Host: rac2.wam.umd.edu
  9. Organization: University of Maryland, College Park
  10. References: <1992Aug26.180629.385@ctp.com>
  11. Date: Mon, 31 Aug 1992 22:05:14 GMT
  12. Lines: 40
  13.  
  14. In article <1992Aug26.180629.385@ctp.com> jmay@ctp.com (Jason May) writes:
  15. >as root does not work.  I had formerly been under the impression
  16. >that root kill -9 meant absolute instantaneous death, but apparently
  17.  
  18. That's not how it works.  What it means is that signal 9 can't be 
  19. _caught_or_ignored_ by the process.
  20.  
  21. When you kill a process, you set a flag to tell that process which signal
  22. you sent it.  When that process goes to run in user mode again, it looks
  23. at this flag and kills itself.  So you don't kill it-- you ask it to kill
  24. itself.
  25.  
  26. So when the process is writing a core file, you can't kill it-- it is
  27. already dying.
  28.  
  29. >If these situations are not indicative of an OS bug, has anyone
  30. >built up a list of conditions in which a process cannot be killed?
  31.  
  32. Anything that causes the process to spend a long time in kernel mode
  33. will do this.  (This usually means it is waiting for something.)
  34.  
  35. Some examples: (most of these are not bugs)
  36. Others have mentioned core files and closing sockets.  
  37.  
  38. Processes that are swapped out have to be swapped in before they can run
  39. (and then die).
  40.  
  41. Processes that have such a low priority that they don't get to run
  42. won't die right away either.
  43.  
  44. Some System V machines have something that looks like a race in the 
  45. terminal driver, so that once in a while, you can have a process which
  46. is unkillable because it is hung doing terminal IO.
  47.  
  48. Processes doing IO to tape drives (especially when they close a 
  49. rewind-on-close device).
  50.  
  51. Anyway, you can probably think of bunches more-- just think "What could
  52. make a process wait in kernel mode?"
  53.  
  54.