home *** CD-ROM | disk | FTP | other *** search
- Submitted-by: terri_watson@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
-
-