* cygwait.cc (cygwait): Move setting res to WAIT_SIGNALED to clarify
when WAIT_SIGNALED is returned to the caller.
This commit is contained in:
parent
f6ec73c018
commit
b6e4adaaf1
winsup/cygwin
@ -1,3 +1,8 @@
|
|||||||
|
2015-02-23 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* cygwait.cc (cygwait): Move setting res to WAIT_SIGNALED to clarify
|
||||||
|
when WAIT_SIGNALED is returned to the caller.
|
||||||
|
|
||||||
2015-02-23 Corinna Vinschen <corinna@vinschen.de>
|
2015-02-23 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* winsup.h (SIGTOMASK): Add cast to sigset_t to avoid int overflow.
|
* winsup.h (SIGTOMASK): Add cast to sigset_t to avoid int overflow.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* cygwait.h
|
/* cygwait.h
|
||||||
|
|
||||||
Copyright 2011, 2012, 2013 Red Hat, Inc.
|
Copyright 2011, 2012, 2013, 2015 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
@ -87,9 +87,10 @@ cygwait (HANDLE object, PLARGE_INTEGER timeout, unsigned mask)
|
|||||||
if (!sig)
|
if (!sig)
|
||||||
continue;
|
continue;
|
||||||
if (is_cw_sig_eintr || (is_cw_sig_cont && sig == SIGCONT))
|
if (is_cw_sig_eintr || (is_cw_sig_cont && sig == SIGCONT))
|
||||||
res = WAIT_SIGNALED; /* caller will deal with signals */
|
;
|
||||||
else if (_my_tls.call_signal_handler ())
|
else if (_my_tls.call_signal_handler ())
|
||||||
continue;
|
continue;
|
||||||
|
res = WAIT_SIGNALED; /* caller will deal with signals */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user