lists.arthurdejong.org
RSS feed

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



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/