summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-03-01 19:06:10 +0000
committerrillig <rillig@pkgsrc.org>2008-03-01 19:06:10 +0000
commitfcf237084520257107c24ae8ac57a799a7f3c94b (patch)
treed4ad798222660992bfe696d227c3399c6a40e4aa
parent6329c16a1649bd3aaeb49da8b6b9f3e57e59ef96 (diff)
downloadpkgsrc-fcf237084520257107c24ae8ac57a799a7f3c94b.tar.gz
Why does pkg_add need many open file descriptors?
-rw-r--r--pkgtools/pkg_install/files/add/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/add/main.c b/pkgtools/pkg_install/files/add/main.c
index 304af92b9ba..92335db7ddc 100644
--- a/pkgtools/pkg_install/files/add/main.c
+++ b/pkgtools/pkg_install/files/add/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.13 2007/08/14 22:47:52 joerg Exp $ */
+/* $NetBSD: main.c,v 1.14 2008/03/01 19:06:10 rillig Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static char *rcsid = "from FreeBSD Id: main.c,v 1.16 1997/10/08 07:45:43 charnier Exp";
#else
-__RCSID("$NetBSD: main.c,v 1.13 2007/08/14 22:47:52 joerg Exp $");
+__RCSID("$NetBSD: main.c,v 1.14 2008/03/01 19:06:10 rillig Exp $");
#endif
#endif
@@ -186,6 +186,7 @@ main(int argc, char **argv)
}
/* Increase # of max. open file descriptors as high as possible */
+ /* XXX: Why is this necessary? */
rc = getrlimit(RLIMIT_NOFILE, &rlim);
if (rc == -1) {
warn("cannot retrieve max. number of open files resource limit");