home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4555 < prev    next >
Encoding:
Text File  |  1992-11-07  |  2.5 KB  |  51 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!pmafire!mica.inel.gov!ux1!news.byu.edu!eff!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!noc.msc.net!news.stolaf.edu!guenther
  3. From: guenther@stolaf.edu (Philip Guenther)
  4. Subject: Re: How to 'purge' a process?
  5. In-Reply-To: tpaquette@ita.lgc.com's message of Wed, 4 Nov 1992 15:27:58 GMT
  6. Message-ID: <GUENTHER.92Nov5185505@lars.stolaf.edu>
  7. Sender: news@news.stolaf.edu
  8. Organization: Academic Computing Center, St. Olaf College
  9. References: <TPAQUETTE.92Nov4092758@gumby.ita.lgc.com>
  10. Date: 5 Nov 92 18:55:05
  11. Lines: 38
  12.  
  13. In article <TPAQUETTE.92Nov4092758@gumby.ita.lgc.com> tpaquette@ita.lgc.com (Trevor Paquette) writes:
  14.     Ok here is one for all the wizards out there...
  15.  
  16.      I want to tell unix to kill/purge/delete/remove/maim a process id.
  17.     I don't care what it is doing, or what it is waiting for. All I know
  18.     is that I want it gone. 
  19.  
  20.       This must also work for zombied processes, and processes that are waiting
  21.     for io (read: nfs timeouts, hardware timeouts etc..)
  22.  
  23. In all versions of un*x I know, this is impossible.  The zombie part
  24. always is, as are any other times when the process is in the kernel on
  25. a non-interruptible system call.  Note that a zombie process can be
  26. thought of as a process in the kernel for the system call _exit, and
  27. _exit is not an interruptible sys call.  If your nfs filesystem's are
  28. not mounted intr then they can't be interrupted and if mounted hard
  29. they'll sit there retrying forever.  I am *not* recommending mounting
  30. everything soft,intr.  You want to mount root and swap (at least) and
  31. other vital fs's hard and non-intr to prevent bad things.
  32.  
  33.      This started when we tried to kill a process waiting on a hung plotter.
  34.     We could not kill -9 the process, it was still there. Is there a way to
  35.     tell unix to remove a process no matter what?
  36.  
  37. No, there isn't.  Rest assured that the process will barely (or
  38. possibly not at all) make it out of the kernel before your SIGKILL
  39. will take effect.  Since it is just waiting inside the kernel and not
  40. really doing any 'real' work,  you shouldn't worry excessively.  Just
  41. fix the printer.
  42.  
  43.   Whoops!  There *is* a way to kill any process.  Reboot. :-)
  44.  
  45. Philip Guenther
  46. --
  47. guenther@stolaf.edu (Philip Guenther)       | The ACC might agree with me,
  48. Student Sys Prog, Academic Computing Center | but with that bunch, (and me)
  49. St Olaf College, Northfield, MN 55057-1001  | you never know... :-) :-| :-(
  50. "Life makes sense?  LIFE MAKES SENSE!!?  Where do people get these ideas?"-me
  51.