home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / programm / 7196 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.3 KB

  1. Path: sparky!uunet!know!mips2!news.bbn.com!usc!sdd.hp.com!swrinde!gatech!prism!xray.gatech.edu!cc100aa
  2. From: cc100aa@xray.gatech.edu (Ray Spalding)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: zombies (was Re: What does a task with priority -1 mean?)
  5. Message-ID: <74594@hydra.gatech.EDU>
  6. Date: 12 Nov 92 18:42:20 GMT
  7. References: <1dmp94INNppe@uwm.edu> <1992Nov10.152955.21859@menudo.uh.edu> <10NOV199210153953@mpx2.lampf.lanl.gov>
  8. Sender: news@prism.gatech.EDU
  9. Distribution: usa
  10. Organization: Georgia Institute of Technology
  11. Lines: 17
  12.  
  13. To avoid zombies, a UNIX process doing a fork (a parent process)
  14. must reap it's child(ren).  This is done by some varient of the
  15. wait(2) system call, and it may be helpful to install a SIGCHLD
  16. handler.  The man pages seem to imply that wait() is an optional
  17. feature, but failure to call it will result in a zombie.
  18.  
  19. It sounds like Terminal is not doing this properly.  The Subprocess
  20. example does not seem to do this, either.
  21.  
  22. Most UNIXes I'm familiar with report zombies as <defunct>, but
  23. Mach apparently doesn't, if what's been reported here is correct.
  24. Also, on other UNIXes, killing them (from root) is no problem.
  25.  
  26. -- 
  27. Ray Spalding, Office of Information Technology
  28. Georgia Institute of Technology, Atlanta Georgia, 30332-0715
  29. Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
  30.