home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / std_unix / volume.22 / text0039.txt < prev    next >
Encoding:
Text File  |  1991-03-06  |  560 b   |  23 lines

  1. Submitted-by: terri_watson@cis.ohio-state.edu
  2.  
  3. Of course assuming that the parent doesn't care about the return value
  4. of qfork(), then one could manage to conform to the restrictions by:
  5.  
  6.     if (qfork() == 0) exit(execve(...));
  7.  
  8. or for the truly sick-at-heart:
  9.  
  10.     (status = qfork()) ? 1 : exit(execve(...));
  11.  
  12. (Of course it _could_ be argued that, in the second example, the very
  13. assignment of status = qfork() violates the rules, but I thought the
  14. humor value was high.)
  15.  
  16. But _I'm_ not writing code like that! <grin>
  17.  
  18. Terri
  19.  
  20.  
  21. Volume-Number: Volume 22, Number 40
  22.  
  23.