Try to remove possible race pinfo::init

Arto Huusko
Fri Jul 29 10:39:00 GMT 2005

On some systems, I was frequent segmentation faults on fork(), and
I was able to track it down to the patch I just sent. However, my
scripts don't run much better, because they now fail only a bit
more cleanly with "fork: Resource temporarily unavailable".

Since my previous patch transformed seg faults to EAGAIN errors,
I tried to find potential races or other errors in pinfo::init.
I didn't really take the time to try to understand the code, but
if I'm guessing right, the MapViewOfFileEx() call is doing something
that depends on the child. If that's right, then it seems to me
that the retry loop in open_shared() failure case is a bit too

2005-07-29  Arto Huusko  <>

	* (pinfo::init): Sleep before retrying open_shared().

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pinfo.patch
Type: text/x-patch
Size: 301 bytes
Desc: not available
URL: <>

More information about the Cygwin-patches mailing list