nss-pam-ldapd commit: r2075 - nss-pam-ldapd-0.8/common
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r2075 - nss-pam-ldapd-0.8/common
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r2075 - nss-pam-ldapd-0.8/common
- Date: Sat, 15 Mar 2014 21:07:15 +0100 (CET)
Author: arthur
Date: Sat Mar 15 21:07:14 2014
New Revision: 2075
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=2075&view=revision
Log:
also support poll() returning EAGAIN (2f088ec from 0.9)
Modified:
nss-pam-ldapd-0.8/common/tio.c
Modified: nss-pam-ldapd-0.8/common/tio.c
==============================================================================
--- nss-pam-ldapd-0.8/common/tio.c Sat Mar 15 20:36:37 2014 (r2074)
+++ nss-pam-ldapd-0.8/common/tio.c Sat Mar 15 21:07:14 2014 (r2075)
@@ -189,10 +189,10 @@
errno=ETIME;
return -1;
}
- else if (errno!=EINTR)
+ else if ((errno!=EINTR)&&(errno!=EAGAIN))
/* some error ocurred */
return -1;
- /* we just try again on EINTR */
+ /* we just try again on EINTR or EAGAIN */
}
}
@@ -420,7 +420,7 @@
rv=poll(fds,1,0);
/* check if any file descriptors were ready (timeout) or we were
interrupted */
- if ((rv==0)||((rv<0)&&(errno==EINTR)))
+ if ((rv==0)||((rv<0)&&((errno==EINTR)||(errno==EAGAIN))))
return 0;
/* any other errors? */
if (rv<0)
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/
- nss-pam-ldapd commit: r2075 - nss-pam-ldapd-0.8/common,
Commits of the nss-pam-ldapd project