]> git.pld-linux.org Git - packages/LPRng.git/blame - LPRng-nproc-unlimited.patch
- updated for 3.8.1.
[packages/LPRng.git] / LPRng-nproc-unlimited.patch
CommitLineData
3c6fda67
JB
1--- LPRng-3.8.0/src/common/utilities.c.orig Tue Oct 16 22:32:46 2001
2+++ LPRng-3.8.0/src/common/utilities.c Tue Nov 6 17:02:54 2001
3@@ -525,7 +525,10 @@
4 if( getrlimit(RLIMIT_NPROC, &pcount) == -1 ){
5 FATAL(LOG_ERR) "Get_max_servers: getrlimit failed" );
6 }
7- n = pcount.rlim_cur;
8+ if( pcount.rlim_cur == RLIM_INFINITY )
9+ n = INT_MAX;
10+ else
11+ n = pcount.rlim_cur;
12 DEBUG1("Get_max_servers: getrlimit returns %d", n );
13 #else
14 # if defined(HAVE_SYSCONF) && defined(_SC_CHILD_MAX)
This page took 0.067319 seconds and 4 git commands to generate.