From owner-cvs-sys Mon Jan 27 04:43:41 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA04740 for cvs-sys-outgoing; Mon, 27 Jan 1997 04:43:41 -0800 (PST) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA04733; Mon, 27 Jan 1997 04:43:39 -0800 (PST) Date: Mon, 27 Jan 1997 04:43:39 -0800 (PST) From: Bruce Evans Message-Id: <199701271243.EAA04733@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/kern init_main.c src/sys/conf options src/sys/i386/conf LINT Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/01/27 04:43:38 Modified: sys/conf options Log: Removed bogus options CHILD_MAX and OPEN_MAX. Put obsolete GATEWAY option back in opt_defunct.h. It's the only significant option that has gone away since 2.1.6, so warning about it might be useful. Revision Changes Path 1.27 +5 -4 src/sys/conf/options Modified: sys/i386/conf LINT Log: Removed bogus options CHILD_MAX and OPEN_MAX. Revision Changes Path 1.310 +0 -13 src/sys/i386/conf/LINT Modified: sys/kern init_main.c Log: Set the soft openfiles limit to maxfiles instead of to NOFILE. The limit is now only used by init, so it may as well be "infinite". Don't use RLIM_INFINITY, since setrlimit() doesn't allow setting that value. Use maxfiles instead of RLIM_INFINITY for the hard limit for the same reason. Similarly for the maxprocesses limits (use the "infinite" value of maxproc instead if MAXUPRC and RLIM_INFINITY). NOFILES, MAXUPRC, CHILD_MAX and OPEN_MAX are no longer used in /usr/src and should go away. Their values are almost guaranteed to be wrong now that login.conf exists, so anything that uses the values is broken. Unfortunately, there are probably a lot of ports that depend on them being defined. The global limits maxfilesperproc and maxprocperuid should go away too. Revision Changes Path 1.55 +5 -2 src/sys/kern/init_main.c