]> git.pld-linux.org Git - packages/LPRng.git/blob - LPRng-nproc-unlimited.patch
- use msg_network_down instead of echo
[packages/LPRng.git] / LPRng-nproc-unlimited.patch
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.611634 seconds and 3 git commands to generate.