[Bug libc/10354] posix_spawn should use vfork() in more cases than presently
bugdal at aerifal dot cx
sourceware-bugzilla@sourceware.org
Sat Oct 15 20:53:00 GMT 2011
http://sourceware.org/bugzilla/show_bug.cgi?id=10354
--- Comment #4 from Rich Felker <bugdal at aerifal dot cx> 2011-10-15 20:52:20 UTC ---
It's defined in terms of open, close, etc. happening in the context of the
child process, where cancellation cannot play any role since there's no way to
obtain a pthread_t value referring to a thread in the child. Of course
implementing posix_spawn using vfork causes the cancellation state to be shared
with the parent, which would be problematic unless special care is made to
protect the state. I suggested several ways this could be done to allow vfork
to be used for posix_spawn in all cases.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list