bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash should retry a fork() returning EAGAIN


From: Matthew Woehlke
Subject: Re: bash should retry a fork() returning EAGAIN
Date: Tue, 18 Sep 2007 17:39:49 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0

Martin Koeppe wrote:
I'm using bash 3.1 on interix. There fork() may fail with EAGAIN if e.g. several builds (configures) are running in parallel. Unfortunately, fork() isn't retried and configure stops.

So I suggest adding this patch to bash which retries fork() when it fails with EAGAIN. Idea is from pdksh. At least 3.2 doesn't have such a patch, I didn't look though all the patches after 3.2, however.

Might be worth checking with the Cygwin folks, but this sounds like it would be useful in Cygwin also. (IIRC, this problem is why I dropped SUA for Cygwin in the first place, i.e. in SUA the problem was much worse.)

Eric, are you watching this? :-)

--
Matthew
"Non sequitor. Your facts are out of order." -- Nomad





reply via email to

[Prev in Thread] Current Thread [Next in Thread]