Messages in this thread |  | | Subject | Re: glibc-2.0.110/111, apmd3.0beta4, & 2.2.0-final | | From | Ulrich Drepper <> | | Date | 23 Jan 1999 20:27:19 -0800 |
| |
Richard Gooch <rgooch@atnf.csiro.au> writes:
> What's the word on whether system calls that manipulate FDs are OK in > the vfork() child? For example, calling dup2()?
Officially: it's not correct (according to the Unix 98). For the actual implementation there might be less restrictions. The only real problem is register variables. If the parent process resumes it'll use whatever value it has before the call. If you have to modify a variable be sure to mark it as volatile.
-- ---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Cygnus Solutions `--' drepper at cygnus.com `------------------------
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
|  |