pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/add Why does pkg_add need m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/da1145af62bb
branches:  trunk
changeset: 539209:da1145af62bb
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Mar 01 19:06:10 2008 +0000

description:
Why does pkg_add need many open file descriptors?

diffstat:

 pkgtools/pkg_install/files/add/main.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r fd04e587ac51 -r da1145af62bb pkgtools/pkg_install/files/add/main.c
--- a/pkgtools/pkg_install/files/add/main.c     Sat Mar 01 19:04:37 2008 +0000
+++ b/pkgtools/pkg_install/files/add/main.c     Sat Mar 01 19:06:10 2008 +0000
@@ -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 @@
        }
        
        /* 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");



Home | Main Index | Thread Index | Old Index