Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sort disable the code which maxes nofiles limit, it ...



details:   https://anonhg.NetBSD.org/src/rev/b44832b1fdab
branches:  trunk
changeset: 509874:b44832b1fdab
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon May 14 21:52:21 2001 +0000

description:
disable the code which maxes nofiles limit, it should not be normally
needed now

diffstat:

 usr.bin/sort/sort.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r e4d066ce34eb -r b44832b1fdab usr.bin/sort/sort.c
--- a/usr.bin/sort/sort.c       Mon May 14 21:45:19 2001 +0000
+++ b/usr.bin/sort/sort.c       Mon May 14 21:52:21 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sort.c,v 1.26 2001/04/30 00:25:09 ross Exp $   */
+/*     $NetBSD: sort.c,v 1.27 2001/05/14 21:52:21 jdolecek Exp $       */
 
 /*-
  * Copyright (c) 1993
@@ -51,7 +51,7 @@
 #endif /* not lint */
 
 #ifndef lint
-__RCSID("$NetBSD: sort.c,v 1.26 2001/04/30 00:25:09 ross Exp $");
+__RCSID("$NetBSD: sort.c,v 1.27 2001/05/14 21:52:21 jdolecek Exp $");
 __SCCSID("@(#)sort.c   8.1 (Berkeley) 6/6/93");
 #endif /* not lint */
 
@@ -321,10 +321,12 @@
 static void
 many_files()
 {
+#if 0
        struct rlimit rlp_many_files[1];
 
        if (getrlimit(RLIMIT_NOFILE, rlp_many_files) == 0) {
                rlp_many_files->rlim_cur = rlp_many_files->rlim_max;
                setrlimit(RLIMIT_NOFILE, rlp_many_files);
        }
+#endif
 }



Home | Main Index | Thread Index | Old Index