Messages in this thread |  | | Date | Sun, 24 Jan 1999 17:50:28 +1100 | | From | Richard Gooch <> | | Subject | Re: glibc-2.0.110/111, apmd3.0beta4, & 2.2.0-final |
| |
Ulrich Drepper writes: > 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.
I don't want to modify any of the parent variables. All I want to do is dup2() and close() FDs. So Unix98 says this is verboten?
Regards,
Richard....
- 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/
|  |