home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.wizards
- 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
- From: guenther@stolaf.edu (Philip Guenther)
- Subject: Re: How to 'purge' a process?
- In-Reply-To: tpaquette@ita.lgc.com's message of Wed, 4 Nov 1992 15:27:58 GMT
- Message-ID: <GUENTHER.92Nov5185505@lars.stolaf.edu>
- Sender: news@news.stolaf.edu
- Organization: Academic Computing Center, St. Olaf College
- References: <TPAQUETTE.92Nov4092758@gumby.ita.lgc.com>
- Date: 5 Nov 92 18:55:05
- Lines: 38
-
- In article <TPAQUETTE.92Nov4092758@gumby.ita.lgc.com> tpaquette@ita.lgc.com (Trevor Paquette) writes:
- Ok here is one for all the wizards out there...
-
- I want to tell unix to kill/purge/delete/remove/maim a process id.
- I don't care what it is doing, or what it is waiting for. All I know
- is that I want it gone.
-
- This must also work for zombied processes, and processes that are waiting
- for io (read: nfs timeouts, hardware timeouts etc..)
-
- In all versions of un*x I know, this is impossible. The zombie part
- always is, as are any other times when the process is in the kernel on
- a non-interruptible system call. Note that a zombie process can be
- thought of as a process in the kernel for the system call _exit, and
- _exit is not an interruptible sys call. If your nfs filesystem's are
- not mounted intr then they can't be interrupted and if mounted hard
- they'll sit there retrying forever. I am *not* recommending mounting
- everything soft,intr. You want to mount root and swap (at least) and
- other vital fs's hard and non-intr to prevent bad things.
-
- This started when we tried to kill a process waiting on a hung plotter.
- We could not kill -9 the process, it was still there. Is there a way to
- tell unix to remove a process no matter what?
-
- No, there isn't. Rest assured that the process will barely (or
- possibly not at all) make it out of the kernel before your SIGKILL
- will take effect. Since it is just waiting inside the kernel and not
- really doing any 'real' work, you shouldn't worry excessively. Just
- fix the printer.
-
- Whoops! There *is* a way to kill any process. Reboot. :-)
-
- Philip Guenther
- --
- guenther@stolaf.edu (Philip Guenther) | The ACC might agree with me,
- Student Sys Prog, Academic Computing Center | but with that bunch, (and me)
- St Olaf College, Northfield, MN 55057-1001 | you never know... :-) :-| :-(
- "Life makes sense? LIFE MAKES SENSE!!? Where do people get these ideas?"-me
-