diff options
author | Christopher Faylor <me@cgf.cx> | 2002-12-25 17:43:37 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-12-25 17:43:37 +0000 |
commit | a8eb76e3e157b0531d82ed1b0f4dc57de235c275 (patch) | |
tree | db7db1dddbff75c8bd11135b454b43d4b2cb05bb /winsup | |
parent | 4b699462aa07431e40d24c3912ac565f1f74b960 (diff) | |
download | newlib-a8eb76e3e157b0531d82ed1b0f4dc57de235c275.zip newlib-a8eb76e3e157b0531d82ed1b0f4dc57de235c275.tar.gz newlib-a8eb76e3e157b0531d82ed1b0f4dc57de235c275.tar.bz2 |
* cygthread.cc (cygthread::detach): Set errno with set_sig_errno so that EINTR
is properly restored after signal.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/cygthread.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6bfb28c..81ad7d1 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index 48f6c5b..5328a39 100644 --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -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; |