nss-pam-ldapd commit: r1678 - nss-pam-ldapd/nslcd
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
nss-pam-ldapd commit: r1678 - nss-pam-ldapd/nslcd
- 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: r1678 - nss-pam-ldapd/nslcd
- Date: Fri, 4 May 2012 15:31:43 +0200 (CEST)
Author: arthur
Date: Fri May 4 15:31:43 2012
New Revision: 1678
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1678&view=revision
Log:
don't try to close _SC_OPEN_MAX file descriptor
Modified:
nss-pam-ldapd/nslcd/nslcd.c
Modified: nss-pam-ldapd/nslcd/nslcd.c
==============================================================================
--- nss-pam-ldapd/nslcd/nslcd.c Wed May 2 23:11:28 2012 (r1677)
+++ nss-pam-ldapd/nslcd/nslcd.c Fri May 4 15:31:43 2012 (r1678)
@@ -709,7 +709,7 @@
exit(EXIT_FAILURE);
}
/* close all file descriptors (except stdin/out/err) */
- i=sysconf(_SC_OPEN_MAX);
+ i=sysconf(_SC_OPEN_MAX)-1;
/* if the system does not have OPEN_MAX just close the first 32 and
hope we closed enough */
if (i<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: r1678 - nss-pam-ldapd/nslcd,
Commits of the nss-pam-ldapd project