This is the mail archive of the libc-alpha@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]

Re: posix_spawn should use vfork() in more cases than presently


Let's try that message again, with evil mime stuff removed.

On Tue, Jun 30, 2009 at 16:47, Martin Buchholz <martinrb@google.com> wrote:
I just filed glibc bug

posix_spawn should use vfork() in more cases than presently
http://sources.redhat.com/bugzilla/show_bug.cgi?id=10354

glibc posix_spawn uses vfork() in some cases, fork() in others.
Currently it is rather conservative in this regard.
For example, if there are any file actions, vfork() is avoided.
This restriction can be lifted, I think,

especially for the common case of closing file descriptors.

Martin

> On Mon, Jun 29, 2009 at 19:28, Roland McGrath <roland@redhat.com> wrote:
>>
>> > (Aside: I also wonder why glibc's implementation of posix_spawn avoids
>> > using vfork if there are file actions specified)
>>
>> Hmm, I'm not sure about that. ?I also have no idea why you aren't asking
>> these questions on the libc-alpha mailing list.
>


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