OSDN Git Service

* cygthread.cc (cygthread::detach): Set errno with set_sig_errno so that EINTR
authorcgf <cgf>
Wed, 25 Dec 2002 17:43:37 +0000 (17:43 +0000)
committercgf <cgf>
Wed, 25 Dec 2002 17:43:37 +0000 (17:43 +0000)
is properly restored after signal.

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

index 6bfb28c..81ad7d1 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-25  Christopher Faylor  <cgf@redhat.com>
+
+       * cygthread.cc (cygthread::detach): Set errno with set_sig_errno so
+       that EINTR is properly restored after signal.
+
 2002-12-21  Christopher Faylor  <cgf@redhat.com>
 
        * Makefile.in: Default fhandler objects to -fomit-frame-pointer.
index 48f6c5b..5328a39 100644 (file)
@@ -297,7 +297,7 @@ cygthread::detach (HANDLE sigwait)
          else
            {
              terminate_thread ();
-             set_errno (EINTR);        /* caller should be dealing with return
+             set_sig_errno (EINTR);    /* caller should be dealing with return
                                           values. */
              avail = 0;
              signalled = true;