diff options
author | rillig <rillig@pkgsrc.org> | 2008-03-01 19:06:10 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-03-01 19:06:10 +0000 |
commit | 5f55df0532b57de70f1ec1b2c39058d284d923f0 (patch) | |
tree | d4ad798222660992bfe696d227c3399c6a40e4aa /pkgtools/pkg_install | |
parent | 72f0d4b2a302dde14634aa6da77c342457a5ebdd (diff) | |
download | pkgsrc-5f55df0532b57de70f1ec1b2c39058d284d923f0.tar.gz |
Why does pkg_add need many open file descriptors?
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/files/add/main.c | 5 |
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"); |