signal arrived, don't wait infinitely for it.
+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
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
{