From ae49af676494d288b872ee314af7cb632d211d7a Mon Sep 17 00:00:00 2001 From: hjl Date: Tue, 27 Jun 2000 18:05:50 +0000 Subject: [PATCH] 2000-06-27 H.J. Lu * utils/statd/statd.c (main): Use sysconf (_SC_OPEN_MAX) instead of OPEN_MAX. --- ChangeLog | 5 +++++ utils/statd/statd.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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); } } -- 2.39.5