From: hjl Date: Tue, 27 Jun 2000 18:05:50 +0000 (+0000) Subject: 2000-06-27 H.J. Lu X-Git-Tag: nfs-utils-0-1-8-2^0 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ae49af676494d288b872ee314af7cb632d211d7a;p=nfs-utils.git 2000-06-27 H.J. Lu * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX) instead of OPEN_MAX. --- diff --git a/ChangeLog b/ChangeLog index 10ca653..11f6ef4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-06-27 H.J. Lu + + * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX) + instead of OPEN_MAX. + 2000-06-27 H.J. Lu * README: Updated. diff --git a/utils/statd/statd.c b/utils/statd/statd.c index 3b76e30..91cb3bc 100644 --- a/utils/statd/statd.c +++ b/utils/statd/statd.c @@ -76,7 +76,7 @@ main (int argc, char **argv) setsid (); chdir (DIR_BASE); - for (filedes = 0; filedes < OPEN_MAX; filedes++) { + for (filedes = 0; filedes < sysconf (_SC_OPEN_MAX); filedes++) { close (filedes); } }