]> granicus.if.org Git - apache/commitdiff
Remove some #ifdef'ed code that doesn't make much sense
authorTony Finch <fanf@apache.org>
Mon, 5 Jun 2000 23:58:34 +0000 (23:58 +0000)
committerTony Finch <fanf@apache.org>
Mon, 5 Jun 2000 23:58:34 +0000 (23:58 +0000)
(what does the 2 signify?)

Reviewed by: Ryan Bloom

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85433 13f79535-47bb-0310-9956-ffa450edef68

server/config.c

index 831039c94690b63634e78221384cf0745bedc66f..dd99ebd0c92fce6d41c570043138999f3a4d8c05 100644 (file)
@@ -1442,20 +1442,6 @@ CORE_EXPORT(const char *) ap_init_virtual_host(ap_pool_t *p, const char *hostnam
 {
     server_rec *s = (server_rec *) ap_pcalloc(p, sizeof(server_rec));
 
-#ifdef RLIMIT_NOFILE
-    struct rlimit limits;
-
-    getrlimit(RLIMIT_NOFILE, &limits);
-    if (limits.rlim_cur < limits.rlim_max) {
-       limits.rlim_cur += 2;
-       if (setrlimit(RLIMIT_NOFILE, &limits) < 0) {
-           perror("setrlimit(RLIMIT_NOFILE)");
-           ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
-                         "Cannot exceed hard limit for open files");
-       }
-    }
-#endif
-
     /* TODO: this crap belongs in http_core */
     s->process = main_server->process;
     s->server_admin = NULL;