httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Kosut <ako...@organic.com>
Subject Re: For 1.1
Date Wed, 26 Jun 1996 17:24:38 GMT
On Wed, 26 Jun 1996, Robert S. Thau wrote:

>   0 here as well.  Mr. Thau, since alloc.c is your baby, do Alexei's patches
>   look right to you?
> 
> Urgh.  They must have drifted by when I wasn't paying attention.  If 
> I don't see anything by evening East Coast time, I'll grub through the
> archives, but if someone could forward a copy before then, I'd appreciate
> it.

Never mind, actually... that patch didn't work right. Here's one that does
(I checked, double and triple). It makes CGI scripts work, exec cmd, and
presumably anything else that spawns children using the same mechanism.
It's probably not the best way of doing it, but it's a simple patch, and
it works well enough:

Index: alloc.c
===================================================================
RCS file: /export/home/cvs/apache/src/alloc.c,v
retrieving revision 1.6
diff -c -r1.6 alloc.c
*** alloc.c	1996/06/17 20:43:45	1.6
--- alloc.c	1996/06/26 17:23:56
***************
*** 64,69 ****
--- 64,71 ----
  
  #include <stdarg.h>
  
+ extern int standalone;
+ 
  /*****************************************************************
   *
   * Managing free storage blocks...
***************
*** 713,719 ****
  void cleanup_for_exec()
  {
    block_alarms();
!   cleanup_pool_for_exec (permanent_pool);
    unblock_alarms();
  }
  
--- 715,721 ----
  void cleanup_for_exec()
  {
    block_alarms();
!   if (standalone) cleanup_pool_for_exec (permanent_pool);
    unblock_alarms();
  }
  


-- Alexei Kosut <akosut@organic.com>            The Apache HTTP Server 
   http://www.nueva.pvt.k12.ca.us/~akosut/      http://www.apache.org/



Mime
View raw message