* sigproc.cc (wait_sig): Be more defensive about detecting when we're exiting.

This commit is contained in:
Christopher Faylor 2005-09-13 15:05:53 +00:00
parent 4e993dc7cc
commit 00fb79f70e
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-09-13 Christopher Faylor <cgf@timesys.com>
* sigproc.cc (wait_sig): Be more defensive about detecting when we're
exiting.
2005-09-12 Christopher Faylor <cgf@timesys.com>
* cygthread.cc (cygthread::cygthread): Add more info to fatal error.

View File

@ -1028,7 +1028,7 @@ wait_sig (VOID *self)
sigpacket pack;
if (!ReadFile (readsig, &pack, sizeof (pack), &nb, NULL))
break;
if (myself->sendsig == INVALID_HANDLE_VALUE)
if (exit_state || myself->sendsig == INVALID_HANDLE_VALUE)
break;
if (nb != sizeof (pack))