libiberty/pex-unix vfork abuse?
Ross Ridge
rridge@csclub.uwaterloo.ca
Fri Dec 7 19:38:00 GMT 2007
Dave Korn writes:
> Perhaps we could work around this case by setting environ in the parent
> before the vfork call and restoring it afterward, but we'd need kind of
> serialisation there, and I don't know how to do a critical section using
> pthreads/posix.
A simple solution would be to call fork() instead of vfork() when changing
the environment.
Ross Ridge
More information about the Gcc
mailing list