This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: bug in wait code.
- To: gnu-win32 at cygnus dot com
- Subject: Re: bug in wait code.
- From: cgf at bbc dot com (Chris Faylor)
- Date: Sun, 2 Nov 1997 19:51:55 GMT
- Organization: Boston Business Computing, Ltd.
- References: <345BC57E.11009504@earthlink.net>
- Reply-To: cgf at bbc dot com
In article <345BC57E.11009504@earthlink.net>,
rale <rale00@earthlink.net> wrote:
>Hi,
> There seems to be a bug in the wait code somewhere, that shows up
>randomly while running configure scripts under Win98.
>Here is the error returned:
>
>(C:\UNIX\BIN\SH.EXE 1061) wait_subproc: wait failed. nchildren 1, wait
>-1, err 6
It is also possible that there is a problem with Win98 since I haven't
seen reports of this on Windows 95 or Windows NT.
>then seems to go into an infinate loop, and keeps printing the same
>error. I havent been able to find the exact problem, and it seems
>pretty random. I think i know why its going into a loop tho. The
>following patch should fix this, but i havent had a chance to test it
>out. It does seem to make sence to break out of the for(;;) loop if
>the wait fails..
>
>--- sigproc.cc.orig Sat Nov 01 18:59:03 1997
>+++ sigproc.cc Sat Nov 01 18:52:09 1997
>@@ -814,7 +814,7 @@
> {
> alert_printf ("wait failed. nchildren %d, wait %d, err %d\n",
> nchildren, loop_wait, GetLastError ());
>- continue;
>+ break;
> }
>
> rc -= WAIT_OBJECT_0;
This will certainly break out of the loop but the program will not
function properly from then on. waits will no longer work. I'm not
sure that's exactly the right solution.
--
http://www.bbc.com/ cgf@bbc.com "Strange how unreal
VMS=>UNIX Solutions Boston Business Computing the real can be."
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".