(original) (raw)

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.