mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
* ldap.cc (cyg_ldap::wait): Call cygwait with cw_infinite timeout value
and with cw_sig_restart instead of cw_sig_eintr. Drop useless _my_tls.call_signal_handler call. Return EIO if cygwait failed.
This commit is contained in:
parent
51a60543f0
commit
0fb41ffa65
@ -1,3 +1,9 @@
|
||||
2015-02-26 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* ldap.cc (cyg_ldap::wait): Call cygwait with cw_infinite timeout value
|
||||
and with cw_sig_restart instead of cw_sig_eintr. Drop useless
|
||||
_my_tls.call_signal_handler call. Return EIO if cygwait failed.
|
||||
|
||||
2015-02-26 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* posix_ipc.cc (ipc_mutex_lock): Revert unneeded call to signal handler.
|
||||
|
@ -142,11 +142,10 @@ cyg_ldap::wait (cygthread *thr)
|
||||
{
|
||||
if (!thr)
|
||||
return EIO;
|
||||
if (cygwait (*thr, INFINITE, cw_sig | cw_sig_eintr) != WAIT_OBJECT_0)
|
||||
if (cygwait (*thr, cw_infinite, cw_sig | cw_sig_restart) != WAIT_OBJECT_0)
|
||||
{
|
||||
thr->terminate_thread ();
|
||||
_my_tls.call_signal_handler ();
|
||||
return EINTR;
|
||||
return EIO;
|
||||
}
|
||||
thr->detach ();
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user