* cygthread.cc (cygthread::detach): Set errno with set_sig_errno so that EINTR

is properly restored after signal.
This commit is contained in:
Christopher Faylor 2002-12-25 17:43:37 +00:00
parent 4b699462aa
commit a8eb76e3e1
2 changed files with 6 additions and 1 deletions

View 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.

View 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;