diff options
author | Christopher Faylor <me@cgf.cx> | 2002-12-25 20:43:37 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-12-25 20:43:37 +0300 |
commit | a8eb76e3e157b0531d82ed1b0f4dc57de235c275 (patch) | |
tree | db7db1dddbff75c8bd11135b454b43d4b2cb05bb /winsup/cygwin/cygthread.cc | |
parent | 4b699462aa07431e40d24c3912ac565f1f74b960 (diff) |
* cygthread.cc (cygthread::detach): Set errno with set_sig_errno so that EINTR
is properly restored after signal.
Diffstat (limited to 'winsup/cygwin/cygthread.cc')
-rw-r--r-- | winsup/cygwin/cygthread.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index 48f6c5b15..5328a39bd 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; |