Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!ames!dftsrv!mimsy!chris From: chris@mimsy.umd.edu (Chris Torek) Newsgroups: comp.unix.wizards Subject: Re: Defunct process Message-ID: <23018@mimsy.umd.edu> Date: 10 Mar 90 07:12:33 GMT References: <1805@cygnet.UUCP> <6840005@hpcllcm.HP.COM> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 20 In article <6840005@hpcllcm.HP.COM> pratap@hpcllcm.HP.COM (Pratap Subrahmanyam) writes: >... race condition ... The child dies soon after the parent is "killed", >that is the child dies before it can be reparented. Then the signal that >the child sends out, will be lost in space. That would be a kernel bug. Fortunately, those who wrote the kernel were not that sloppy. When a parent exits, its children are passed over to /etc/init (process 1). If they try to exit while they are moving, nothing happens until they finish moving; then they finish exiting and init wait()s for them. Then then go away. >That is why you see processes with ps -ef. No. There are two reasons for or processes: kernel bugs (typically in device drivers), and parent processes that do not wait() for children. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@cs.umd.edu Path: uunet!mimsy!chris