summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/ldap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/ldap.cc')
-rw-r--r--winsup/cygwin/ldap.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/ldap.cc b/winsup/cygwin/ldap.cc
index 4935d467f..b902d9df8 100644
--- a/winsup/cygwin/ldap.cc
+++ b/winsup/cygwin/ldap.cc
@@ -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;