qfork()

Peter da Silva peter at ficc.ferranti.com
Fri Dec 28 05:56:25 AEST 1990


Submitted-by: peter at ficc.ferranti.com (Peter da Silva)

In article <16066 at cs.utexas.edu> lewine at cheshirecat.webo.dg.com (Donald Lewine) writes:
> I would propose replacing the phrase: "executes any code" with "calls
> any function defined in this standard or the C standard {8}"  I think
> that does what you mean.

How about "executes any code that changes the state of the program". So,
for example:

	static int child;

	child = 0;
	if(qfork() == 0) {
		child = 1;
		exec...;
	}

At this point, unless I'm confused about legal interpretations of "qfork()",
the value of "child" is indeterminate.
-- 
Peter da Silva.   `-_-'    "Eat hot digital death, mainframe scum!"
+1 713 274 5180.   'U`          -- Attack of the Killer Micros.
peter at ferranti.com

Volume-Number: Volume 22, Number 43



More information about the Comp.std.unix mailing list