diff options
author | rillig <rillig> | 2008-03-01 19:06:10 +0000 |
---|---|---|
committer | rillig <rillig> | 2008-03-01 19:06:10 +0000 |
commit | 262e1a52dabda043fe24cf091a7c7477723dbc10 (patch) | |
tree | d4ad798222660992bfe696d227c3399c6a40e4aa | |
parent | 75ccb81dc94faffdaf58fa4120ae0df6e61a0ba4 (diff) | |
download | pkgsrc-262e1a52dabda043fe24cf091a7c7477723dbc10.tar.gz |
Why does pkg_add need many open file descriptors?
-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"); |