Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: "Graceful Restart" patch

From: Alexei Kosut <akosut(at)organic.com>
Date: Sun Jun 23 1996 - 16:34:49 EDT


On Sun, 23 Jun 1996, Aram Mirzadeh wrote:

> > 1) My patch to fix inetd CGI requests. No one's seen fit yet to

We probably will dump it for the next release, but for now, we still support inetd. Theoretically. Hmm... that bug is probably the same as the CGI one. Maybe we'd best go for a more general fix (which is to not call note_cleanups_for_file() from spawn_child() for inetd requests), rather than the mod_cgi-specific one I posted earlier. Try the following patch (untested):

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/23 20:31:49

  • 64,69 **** --- 64,71 ----

  #include <stdarg.h>   

+ extern int standalone;
+

  /*****************************************************************
   *
  • Managing free storage blocks...
    • 896,902 **** *pipe_out = fdopen (out_fds[0], "r"); #endif

! if (*pipe_out) note_cleanups_for_file (p, *pipe_out);

    }   

Do you need help?X

    if (pipe_in) {
--- 898,904 ----

      *pipe_out = fdopen (out_fds[0], "r");   #endif     

! if (*pipe_out && standalone) note_cleanups_for_file (p, *pipe_out);

    }   

    if (pipe_in) {


  • 908,914 **** *pipe_in = fdopen (in_fds[1], "w"); #endif

! if (*pipe_in) note_cleanups_for_file (p, *pipe_in);

    }   

    unblock_alarms();
--- 910,916 ----

Do you need more help?X

      *pipe_in = fdopen (in_fds[1], "w");   #endif

      
!     if (*pipe_in && standalone) note_cleanups_for_file (p, *pipe_in);

    }   

    unblock_alarms();

Received on Sun Jun 23 13:35:11 1996

This archive was generated by hypermail 2.1.8 : Thu Aug 24 2006 - 14:43:43 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library