🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #36569

Re: setrlimit(RLIMIT_STACK, RLIM_INFINITY) error in INN 1.7.2 errlog (on RH5.2)

#36569
From: Ralf Döblitz
Date: Wed, 14 Apr 1999 00:00
22 lines
1925 bytes
Russ Allbery <rra@stanford.edu> wrote:
[...]
>Linux, on the other hand, didn't let me set it higher than 256 (this is
>with a 2.0.x kernel).

From the kernel source:
	if (resource == RLIMIT_NOFILE) {
		if (new_rlim.rlim_cur > NR_OPEN || new_rlim.rlim_max > NR_OPEN)
			return -EPERM;
	}

So Linux doesn't accept values larger than the compiled in total number
of filehandles. Calling setrlimit with NR_OPEN instead of RLIM_INFINITY
should work (but this is the default setting anyway).

Ralf
-- 
Ralf D�blitz   *   Schapenstr. 6   *   38104 Braunschweig   *   Germany
Phone: +49-531-2361223    Fax: +49-531-2361224   mailto:doeblitz@gmx.de
Homepage: http://www.escape.de/users/selene/

Technical Details
Message-ID: <7f1o81$a71$6@selene.escape.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <7er2ol$qtg$1@news1.guiware.com> <yllnfykc9c.fsf@windlord.stanford.edu> <hlmre7.bcs3.ln@flying.broomstick.com> <ylvhf2fr7c.fsf@windlord.stanford.edu> <fpkte7.vrm3.ln@flying.broomstick.com> <ylhfqk6my3.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <7f1o81$a71$6@selene.escape.de>
Subject: Re: setrlimit(RLIMIT_STACK, RLIM_INFINITY) error in INN 1.7.2 errlog (on RH5.2)
Date: Wed, 14 Apr 1999 00:00:00 +0000
From: Ralf Döblitz <Doeblitz@gmx.de>
References: <7er2ol$qtg$1@news1.guiware.com> <yllnfykc9c.fsf@windlord.stanford.edu> <hlmre7.bcs3.ln@flying.broomstick.com> <ylvhf2fr7c.fsf@windlord.stanford.edu> <fpkte7.vrm3.ln@flying.broomstick.com> <ylhfqk6my3.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 466247788
Distribution: world
Content-Transfer-Encoding: 8bit
Sender: Ralf Doeblitz <doeblitz@selene.escape.de>
Mail-Copies-To: never
Content-Type: text/plain; charset=iso-8859-1
X-Trace: selene.escape.de 924083265 10465 194.120.234.83 (14 Apr 1999 09:47:45 GMT)
Organization: private site in Braunschweig, Germany
User-Agent: tin/pre-1.4-19990216 ("Styrofoam") (UNIX) (Linux/2.0.36 (i586))
Mime-Version: 1.0
NNTP-Posting-Date: 14 Apr 1999 11:47:45 +0200
Newsgroups: news.software.nntp