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