This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/10354] posix_spawn should use vfork() in more cases than presently


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]