From 74fb8bf8cde98478d7958d399db84a5ee4162043 Mon Sep 17 00:00:00 2001 From: robs Date: Thu, 3 May 2001 22:33:53 +0000 Subject: [PATCH] Change the "which call to module_init() is this" check to a more reliable approach. Doru Petrescu [pdoru@kappa.ro] --- CHANGES | 3 +++ mod_fastcgi.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 0a51176..36acdce 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ 2.2.11 + *) Change the "which call to module_init() is this" check to a more + reliable approach. Doru Petrescu [pdoru@kappa.ro] + *) Close the old pipe file descriptor in apache main on USR1/HUP (elimnates a small leak). James E. Jurach Jr. jjurach@fundsxpress.com diff --git a/mod_fastcgi.c b/mod_fastcgi.c index 5033248..6be0d5e 100644 --- a/mod_fastcgi.c +++ b/mod_fastcgi.c @@ -3,7 +3,7 @@ * * Apache server module for FastCGI. * - * $Id: mod_fastcgi.c,v 1.114 2001/05/03 22:11:57 robs Exp $ + * $Id: mod_fastcgi.c,v 1.115 2001/05/03 22:33:53 robs Exp $ * * Copyright (c) 1995-1996 Open Market, Inc. * @@ -267,7 +267,7 @@ static void init_module(server_rec *s, pool *p) * Under Unix, the -X switch causes two calls to init() but no detach * (but all subprocesses are wacked so the PM is toasted anyway)! */ - if (ap_standalone && getppid() != 1) + if (ap_standalone && ap_restart_time == 0) return; /* Create the pipe for comm with the PM */ -- 2.11.4.GIT