home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 11015 < prev    next >
Encoding:
Text File  |  1992-09-13  |  1.1 KB  |  31 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!cs.utexas.edu!oakhill!engage.sps.mot.com!fmbutt
  3. From: fmbutt@engage.sps.mot.com (Farooq M. Butt)
  4. Subject: Answer to my question about child processes and their deaths
  5. Message-ID: <1992Sep13.181407.11902@oakhill.sps.mot.com>
  6. Sender: news@oakhill.sps.mot.com
  7. Nntp-Posting-Host: 223.3.249.15
  8. Organization: Motorola RISC Software, Austin, TX
  9. Date: Sun, 13 Sep 1992 18:14:07 GMT
  10. Lines: 19
  11.  
  12. I just wanted to blast you folks a quick note and let you 
  13. know the net.consensus on my question about the best way to be 
  14. informed of a child process' demise:
  15.  
  16.   1. trap SIGCLD in the parent
  17.   2. when you get a SIGCLD, you know "a" child is dead. Do either a 
  18.      waitpid (nonblocking type) or a wait3 to figure our which kid 
  19.      died.
  20.  
  21.  
  22. Thanks to all the kind souls who answered.
  23.  
  24. fmb
  25.  
  26. -- 
  27. Standard High-Tech Disclaimer: NOTHING  in the above article has the slightest 
  28. relationship to reality. If any reality correspondences are found, please 
  29. notify me IMMEDIATELY. Any threats, abuse or stupidity of any kind is purely 
  30. UNintentional. These are MY Opinions NOT my employer's.
  31.