posix_spawn's usage of fork versus vfork

Florian Weimer fweimer@bfk.de
Thu Oct 7 17:51:00 GMT 2010


* Mike Axiak:

> 1: http://bugs.sun.com/view_bug.do?bug_id=5049299

I think there have been attempts to fix this in OpenJDK.  Here are two
related messages:

| From: Martin Buchholz <martinrb@google.com>
| Subject: posix_spawn should use vfork() in more cases than presently
| To: Roland McGrath <roland@redhat.com>, libc-alpha@sourceware.org
| Cc: Jakub Jelinek <jakub@redhat.com>, core-libs-dev@openjdk.java.net,
| 	Markus Gutschke (顧孟勤)
| 	<markus@google.com>
| Date: Tue, 30 Jun 2009 16:47:33 -0700
| Message-ID: <1ccfd1c10906301647t15f0eab3p1e0771fed6a6bd14@mail.gmail.com>
| 
| 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
| [...]

| From: Martin Buchholz <martinrb@google.com>
| Subject: Re: Review request for 5049299
| To: Andrew Haley <aph@redhat.com>
| Cc: Michael McMahon <Michael.McMahon@sun.com>, core-libs-dev@openjdk.java.net
| Date: Sat, 30 May 2009 10:51:25 -0700
| Message-ID: <1ccfd1c10905301051j527d2e91m217020d037ac1732@mail.gmail.com>
| 
| I have a prototype implementation that works only for Linux,
| only when the environment is inherited,
| but seems to show that the clone/fork approach works.
| [...]

-- 
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99



More information about the Libc-help mailing list