Does a zombie have a "valid pid"

Jonathan I. Kamens jik at athena.mit.edu
Sat May 26 04:16:10 AEST 1990


In article <14276:May2508:53:0790 at stealth.acf.nyu.edu>,
brnstnd at stealth.acf.nyu.edu writes:
|> In article <1990May25.001614.23294 at athena.mit.edu> jik at athena.mit.edu 
|> (Jonathan I. Kamens) writes:
|> >   Yes.  A zombie process is still a process, even if it's in a weird
|> > state.  As long as that's true, it's still going to have a PID
|> > associated with it, and therefore signals sent to it are going to work.
|> 
|> You're correct up to the last phrase. Signals sent to it aren't going to
|> ``work,'' in the sense that they won't invoke the usual signal handler;
|> QUIT won't dump a zombie. They'll be delivered, but they won't work.

  It's a matter of semantics; I stand by what I said, because I meant
the same thing you did.

  The original poster said that he thought a kill(2) sent to a zombie
process should return -1 (meaning that it "shouldn't work").  I replied
that that's incorrect -- signals sent to a zombie process will "work",
at least from the sender's point of view.

  Perhaps I should have said, "... and therefore sending signals to it
is still going to work."

Jonathan Kamens			              USnail:
MIT Project Athena				11 Ashford Terrace
jik at Athena.MIT.EDU				Allston, MA  02134
Office: 617-253-8495			      Home: 617-782-0710



More information about the Comp.unix.questions mailing list