* cygthread.cc (cygthread::detach): Set errno with set_sig_errno so that EINTR
is properly restored after signal.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user