* 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

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