Parent Directory | Revision Log | Patch
revision 1.17 by nmav, Wed Oct 2 19:26:15 2002 UTC | revision 1.18 by nmav, Wed Oct 2 19:32:49 2002 UTC | |
---|---|---|
# | Line 564 struct rlimit rl; | Line 564 struct rlimit rl; |
564 | c = setrlimit(RLIMIT_NOFILE, &rl); | c = setrlimit(RLIMIT_NOFILE, &rl); |
565 | if (c < 0) { | if (c < 0) { |
566 | perror("setrlimit:"); | perror("setrlimit:"); |
567 | } else { | |
568 | SET_MAX_CON( rl.rlim_max); | |
569 | fprintf(stderr, "%s: Increasing max open files from %ld to %ld.\n", | |
570 | SERVER_NAME, (long int)rl.rlim_cur, max_connections); | |
571 | } | } |
SET_MAX_CON( rl.rlim_max); | ||
572 | } | } |
573 | #endif | #endif |
574 | } | } |
|
webmaster@linux.gr | ViewVC Help |
Powered by ViewVC 1.1.26 |