delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/11/01/16:28:00

From: rale00 AT earthlink DOT net (rale)
Subject: bug in wait code.
1 Nov 1997 16:28:00 -0800 :
Message-ID: <345BC57E.11009504.cygnus.gnu-win32@earthlink.net>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

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

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;


-Paul
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019