This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use cygwin spawn functions
- From: Dave Korn <dave dot korn dot cygwin at gmail dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, dj at redhat dot com, kai dot tietz at onevision dot com
- Date: Tue, 12 Oct 2010 02:20:18 +0100
- Subject: Re: [PATCH] Use cygwin spawn functions
- References: <4CB3AEC5.3090209@redhat.com>
On 12/10/2010 01:41, Richard Henderson wrote:
> Emulating fork(2) on cygwin is a bit of a challenge; the hoop jumping is
> a regular circus act. Worse, fork has a habit of failing on Windows 7 64-bit,
> as seen in the many "Bad address" and "Resource temporarily unavailable"
> errors during testing
> (e.g. http://gcc.gnu.org/ml/gcc-testresults/2010-10/msg00624.html).
>
> Cygwin's own faq (sec 5.5) says that it's better to avoid using fork+exec
> when possible and use the spawn family of calls instead.
It's a ton less overhead too, hopefully this will show up in faster test
runs; thanks for that.
cheers,
DaveK