home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.22 / text0034.txt < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.3 KB  |  35 lines

  1. Submitted-by: lewine@cheshirecat.webo.dg.com (Donald Lewine)
  2.  
  3. [[I hope that this has not been covered in detail on comp.std.unix.  
  4.   Delivery of the newsgroup has been uneven for the last few weeks.]]
  5.  
  6. [It's not been so much delivery as posting, due to lessened attention
  7. on my part because of lack of funding, and also because of no snitch
  8. reports.  -mod]
  9.  
  10. Draft 5 of POSIX.1a defines qfork() by saying:
  11. "The qfork() function shall be identical to the fork() function with
  12.  the following exception: behavior is undefined if the child process
  13.  executes any code between the return from qfork() and the succeeding
  14.  call to one of the exec functions or _exit()."
  15.  
  16. This seems to be a very harsh restriction.  The following code seems
  17. like it would be undefined:
  18.     status = qfork();
  19.     if (status == 0) execve(...);
  20.  
  21. I would propose replacing the phrase: "executes any code" with "calls
  22. any function defined in this standard or the C standard {8}"  I think
  23. that does what you mean.
  24.  
  25. --------------------------------------------------------------------
  26. Donald A. Lewine                (508) 870-9008 Voice
  27. Data General Corporation        (508) 366-0750 FAX
  28. 4400 Computer Drive. MS D112A
  29. Westboro, MA 01580  U.S.A.
  30.  
  31. uucp: uunet!dg!lewine   Internet: lewine@cheshirecat.webo.dg.com
  32.  
  33. Volume-Number: Volume 22, Number 35
  34.  
  35.