httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/threadproc/unix proc.c
Date Sat, 29 Jul 2000 12:52:09 GMT
trawick     00/07/29 05:52:09

  Modified:    src/lib/apr/threadproc/unix proc.c
  Log:
  ap_setprocattr_limit() was broken due to missing break statements.
  The caller could get APR_ENOTIMPL when the limit was set; the
  limit argument could be used for more than what the caller
  specified.
  
  Revision  Changes    Path
  1.34      +3 -0      apache-2.0/src/lib/apr/threadproc/unix/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/threadproc/unix/proc.c,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- proc.c	2000/07/21 19:50:46	1.33
  +++ proc.c	2000/07/29 12:52:09	1.34
  @@ -407,18 +407,21 @@
           case APR_LIMIT_CPU:
   #ifdef RLIMIT_CPU
               attr->limit_cpu = limit;
  +            break;
   #else
               return APR_ENOTIMPL;
   #endif
           case APR_LIMIT_MEM:
   #if defined (RLIMIT_DATA) || defined (RLIMIT_VMEM) || defined(RLIMIT_AS)
               attr->limit_mem = limit;
  +            break;
   #else
               return APR_ENOTIMPL;
   #endif
           case APR_LIMIT_NPROC:
   #ifdef RLIMIT_NPROC
               attr->limit_nproc = limit;
  +            break;
   #else
               return APR_ENOTIMPL;
   #endif
  
  
  

Mime
View raw message