apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/threadproc/unix proc.c
Date Tue, 04 Feb 2003 20:12:30 GMT
trawick     2003/02/04 12:12:29

  Modified:    .        CHANGES
               threadproc/unix proc.c
  Log:
  Fix a bug in apr_proc_create() that could cause a new child process
  to run the parent's code if setrlimit() fails.
  
  Revision  Changes    Path
  1.372     +3 -0      apr/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/apr/CHANGES,v
  retrieving revision 1.371
  retrieving revision 1.372
  diff -u -r1.371 -r1.372
  --- CHANGES	1 Feb 2003 12:21:15 -0000	1.371
  +++ CHANGES	4 Feb 2003 20:12:28 -0000	1.372
  @@ -1,5 +1,8 @@
   Changes with APR 0.9.2
   
  +  *) Fix a bug in apr_proc_create() that could cause a new child process
  +     to run the parent's code if setrlimit() fails.  [Jeff Trawick]
  +
     *) Disable apr_socket_sendfile() on 64-bit AIX to avoid an apparent
        system problem.  PR 11408.  [Jeff Trawick]
   
  
  
  
  1.63      +1 -1      apr/threadproc/unix/proc.c
  
  Index: proc.c
  ===================================================================
  RCS file: /home/cvs/apr/threadproc/unix/proc.c,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- proc.c	6 Jan 2003 23:44:38 -0000	1.62
  +++ proc.c	4 Feb 2003 20:12:29 -0000	1.63
  @@ -373,7 +373,7 @@
           }
   
           if ((status = limit_proc(attr)) != APR_SUCCESS) {
  -            return status;
  +            exit(-1);   /* We have big problems, the child should exit. */
           }
   
           if (attr->cmdtype == APR_SHELLCMD) {
  
  
  

Mime
View raw message