* signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr.

This commit is contained in:
Christopher Faylor 2012-08-07 04:25:05 +00:00
parent f29261e662
commit f79b8c456f
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2012-08-07 Christopher Faylor <me.cygwin2012@cgf.cx>
* signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr.
2012-08-03 Christopher Faylor <me.cygwin2012@cgf.cx>
* exceptions.cc (sigdelayed): Simplify declaration.

View File

@ -580,7 +580,7 @@ sigwaitinfo (const sigset_t *set, siginfo_t *info)
sig_dispatch_pending (true);
int res;
switch (cancelable_wait (NULL, cw_infinite, cw_sig | cw_cancel | cw_cancel_self))
switch (cancelable_wait (NULL, cw_infinite, cw_sig_eintr | cw_cancel | cw_cancel_self))
{
case WAIT_SIGNALED:
if (!sigismember (set, _my_tls.infodata.si_signo))
@ -593,7 +593,6 @@ sigwaitinfo (const sigset_t *set, siginfo_t *info)
if (info)
*info = _my_tls.infodata;
res = _my_tls.infodata.si_signo;
/* FIXME: Is this right? */
InterlockedExchange ((LONG *) &_my_tls.sig, (LONG) 0);
}
break;