You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@locus.apache.org on 2000/07/29 14:52:09 UTC

cvs commit: apache-2.0/src/lib/apr/threadproc/unix proc.c

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