home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / next / programm / 7302 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.4 KB  |  31 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!pipex!ibmpcug!exnet2!flatlin!pilhuhn!hwr
  3. From: hwr@pilhuhn.ka.sub.org (Heiko W.Rupp)
  4. Subject: Re: zombies (was Re: What does a task with priority -1 mean?)
  5. References: <1dmp94INNppe@uwm.edu> <1992Nov10.152955.21859@menudo.uh.edu> <10NOV199210153953@mpx2.lampf.lanl.gov> <74594@hydra.gatech.EDU>
  6. Date: Tue, 17 Nov 1992 17:32:36 GMT
  7. Organization: The Home of the Pilhuhn
  8. Message-ID: <1992Nov17.173236.11953@pilhuhn.ka.sub.org>
  9. Lines: 20
  10.  
  11. [ Distribution usa as on Ray's article does not work - besides why do ]
  12. [ you want people outside usa not to get your articles?               ]
  13.  
  14.  
  15. cc100aa@xray.gatech.edu (Ray Spalding) writes:
  16. >To avoid zombies, a UNIX process doing a fork (a parent process)
  17. >must reap it's child(ren).  This is done by some varient of the
  18. >wait(2) system call, and it may be helpful to install a SIGCHLD
  19. >handler.  The man pages seem to imply that wait() is an optional
  20. >feature, but failure to call it will result in a zombie.
  21.  
  22. I think this description isn't quite correct, but I may be wrong: You
  23. only get a zombie, when the parent exits without wait(2)ing for its
  24. childs. When you can be shure, that the children die before the
  25. parent, you don't need to wait(2), but you may for other reasons.
  26. -- 
  27. Heiko W.Rupp  Gerwigstr.5  7500 Kh'e 1  hwr@pilhuhn.ka.sub.org  +49 721 693642
  28. When the weight of the paperwork equals the weight of the plane, the
  29. plane will fly.
  30.         -- Donald Douglas
  31.