qfork()
terri_watson at cis.ohio-state.edu
terri_watson at cis.ohio-state.edu
Thu Dec 27 09:42:07 AEST 1990
Submitted-by: terri_watson at cis.ohio-state.edu
Of course assuming that the parent doesn't care about the return value
of qfork(), then one could manage to conform to the restrictions by:
if (qfork() == 0) exit(execve(...));
or for the truly sick-at-heart:
(status = qfork()) ? 1 : exit(execve(...));
(Of course it _could_ be argued that, in the second example, the very
assignment of status = qfork() violates the rules, but I thought the
humor value was high.)
But _I'm_ not writing code like that! <grin>
Terri
Volume-Number: Volume 22, Number 40
More information about the Comp.std.unix
mailing list