OSDN Git Service

* cygthread.cc (cygthread::detach): Just test thread handle after
authorcorinna <corinna>
Tue, 8 Feb 2005 16:56:01 +0000 (16:56 +0000)
committercorinna <corinna>
Tue, 8 Feb 2005 16:56:01 +0000 (16:56 +0000)
signal arrived, don't wait infinitely for it.

winsup/cygwin/ChangeLog
winsup/cygwin/cygthread.cc

index 4bfe15e..c0bf1ff 100644 (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
index c6ae024..4c14f19 100644 (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
            {