home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16587 < prev    next >
Encoding:
Text File  |  1992-11-16  |  788 b   |  28 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!mcsun!sunic!ugle.unit.no!alf.uib.no!alf.uib.no!singg
  3. From: singg@alf.uib.no (Kurt George Gjerde)
  4. Subject: Wait for child
  5. Message-ID: <1992Nov16.122725.15971@alf.uib.no>
  6. Sender: usenet@alf.uib.no (Bergen University Newsaccount)
  7. Organization: University of Bergen, Norway
  8. Date: Mon, 16 Nov 92 12:27:25 GMT
  9. Lines: 17
  10.  
  11.  
  12. On Unix, how can I have a process wait for it's child process to do something
  13. (not terminate).
  14.  
  15. I've tried using sigpause (couldn't find pause) in the parent process, and 
  16. having the child to send SIGCONT, but that didn't work...
  17.  
  18. Any ideas?
  19.  
  20.  
  21.  
  22. ( Right now it works with the parent constantly checking the existance of a
  23.   file. When the child removes the temp-file, the parent continues... 
  24.   THIS SLOWS DOWN THE SYSTEM! )
  25.  
  26. K.
  27.  
  28.