* cygthread.cc (cygthread::detach): Just test thread handle after

signal arrived, don't wait infinitely for it.
This commit is contained in:
Corinna Vinschen 2005-02-08 16:56:02 +00:00
parent f1256beb92
commit 01d9b1612c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-02-08 Corinna Vinschen <corinna@vinschen.de>
* cygthread.cc (cygthread::detach): Just test thread handle after
signal arrived, don't wait infinitely for it.
2005-02-08 Christopher Faylor <cgf@timesys.com>
* pipe.cc (fhandler_pipe::read): Remove hold over from old read_state

View File

@ -333,7 +333,7 @@ cygthread::detach (HANDLE sigwait)
signalled = false;
else if (res != WAIT_OBJECT_0 + 1)
api_fatal ("WFMO failed waiting for cygthread '%s'", __name);
else if ((res = WaitForSingleObject (*this, INFINITE)) == WAIT_OBJECT_0)
else if ((res = WaitForSingleObject (*this, 0)) == WAIT_OBJECT_0)
signalled = false;
else
{