when WAIT_SIGNALED is returned to the caller.
+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>
* winsup.h (SIGTOMASK): Add cast to sigset_t to avoid int overflow.
/* cygwait.h
- Copyright 2011, 2012, 2013 Red Hat, Inc.
+ Copyright 2011, 2012, 2013, 2015 Red Hat, Inc.
This file is part of Cygwin.
if (!sig)
continue;
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 ())
continue;
+ res = WAIT_SIGNALED; /* caller will deal with signals */
}
break;
}