posix_spawn should use vfork() in more cases than presently (original) (raw)
Martin Buchholz martinrb at google.com
Tue Jun 30 23:47:33 UTC 2009
- Previous message: hg: jdk7/tl/jdk: 6855671: DerOutputStream encodes negative integer incorrectly
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 at redhat.com> wrote:
> (Aside: I also wonder why glibc's implementation of posixspawn 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.openjdk.java.net/pipermail/core-libs-dev/attachments/20090630/5978d302/attachment.html>
- Previous message: hg: jdk7/tl/jdk: 6855671: DerOutputStream encodes negative integer incorrectly
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]