diff options
author | Christopher Faylor <me@cgf.cx> | 2012-08-07 08:25:05 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-08-07 08:25:05 +0400 |
commit | f79b8c456fe520a64e840e42263d3e1cc58b6440 (patch) | |
tree | 4691b91b574a17bb5e7052635c53329d8864b420 /winsup/cygwin/signal.cc | |
parent | f29261e662fe43999a98d84e652b9e96768f11ae (diff) |
* signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r-- | winsup/cygwin/signal.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index b34defb99..f3a3a3a07 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -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; |