Thread View: news.software.nntp
1 messages
1 total messages
Started by Kare Presttun
Mon, 12 Apr 1999 00:00
Problem with setrlimit()
Author: Kare Presttun
Date: Mon, 12 Apr 1999 00:00
Date: Mon, 12 Apr 1999 00:00
63 lines
2465 bytes
2465 bytes
I have the same problem here as well (INN 1.7.2 on RH 5.2) so maybe the Linux gurus can contribute? Best regards, Kåre 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/> ----------------------------------------------------- Bettina Fink <laura@terpen.tin.org> writes: > From setrlimit(2): > EPERM A non-superuser tries to use setrlimit() to > increase the soft or hard limit above the current > hard limit, As startinnfeed is running as root, this shouldn't be a problem. > or a superuser tries to increase RLIMIT_NOFILE above the > current kernel maximum. As it's setting it to INFINITY, this shouldn't be a problem either, as that should simply make it the largest possible value for the current kernel compile. So I'm still confused. -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/> -- Kåre Presttun, Security Officer, Alcanet International ------------------------------------------------------ Tel : +47 2263 7601 mailto:Kare.Presttun@alcatel.no Fax : +47 2263 8887 http://www.alcatel.no/ Mobile: +47 9082 7068
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads