You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by fa...@locus.apache.org on 2000/06/06 01:58:34 UTC

cvs commit: apache-2.0/src/main http_config.c

fanf        00/06/05 16:58:34

  Modified:    src/main http_config.c
  Log:
  Remove some #ifdef'ed code that doesn't make much sense
  (what does the 2 signify?)
  
  Reviewed by:	Ryan Bloom
  
  Revision  Changes    Path
  1.59      +0 -14     apache-2.0/src/main/http_config.c
  
  Index: http_config.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_config.c,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- http_config.c	2000/06/03 16:27:03	1.58
  +++ http_config.c	2000/06/05 23:58:34	1.59
  @@ -1442,20 +1442,6 @@
   {
       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;