* cygthread.cc (cygthread::detach): Set errno with set_sig_errno so that EINTR
is properly restored after signal.
This commit is contained in:
parent
4b699462aa
commit
a8eb76e3e1
|
@ -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>
|
2002-12-21 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* Makefile.in: Default fhandler objects to -fomit-frame-pointer.
|
* Makefile.in: Default fhandler objects to -fomit-frame-pointer.
|
||||||
|
|
|
@ -297,7 +297,7 @@ cygthread::detach (HANDLE sigwait)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
terminate_thread ();
|
terminate_thread ();
|
||||||
set_errno (EINTR); /* caller should be dealing with return
|
set_sig_errno (EINTR); /* caller should be dealing with return
|
||||||
values. */
|
values. */
|
||||||
avail = 0;
|
avail = 0;
|
||||||
signalled = true;
|
signalled = true;
|
||||||
|
|
Loading…
Reference in New Issue