🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #36456

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

#36456
From: Russ Allbery
Date: Sun, 11 Apr 1999 00:00
23 lines
1249 bytes
Bettina Fink <laura@terpen.tin.org> writes:

> I had the same with an self-compilied innfeed on Linux.

> Get the innfeed sources, change the RLIMIT_NOFILE section in
> startinnfeed.c to:

>   setrlimit(RLIMIT_NOFILE, &rl);
> #if 0
>   if (setrlimit(RLIMIT_NOFILE, &rl) == -1)
>     (void)fprintf(stderr, "%s: setrlimit(RLIMIT_NOFILE, RLIM_INFINITY): %s\n",
>             *av, strerror (errno));
> #endif

> Recompile, be happy.

Er... isn't that just removing the reporting of a legitimate error?  Why
is setrlimit() failing on Linux?

-- 
Russ Allbery (rra@stanford.edu)         <URL:http://www.eyrie.org/~eagle/>

Technical Details
Message-ID: <ylu2umhcg1.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
References: <7er2ol$qtg$1@news1.guiware.com> <7erghr$a74$1@krell.snafu.de>

Show Full Headers
Complete Article Headers
Message-ID: <ylu2umhcg1.fsf@windlord.stanford.edu>
Subject: Re: setrlimit(RLIMIT_STACK, RLIM_INFINITY) error in INN 1.7.2 errlog (on RH5.2)
Date: Sun, 11 Apr 1999 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <7er2ol$qtg$1@news1.guiware.com> <7erghr$a74$1@krell.snafu.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
X-Deja-AN: 465291677
Organization: The Eyrie
Newsgroups: news.software.nntp