www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aidan Cully <ai...@panix.com>
Subject apache-api/2762: subprocess cleanup can fail on restart/shutdown
Date Fri, 21 May 1999 22:20:01 GMT
The following reply was made to PR apache-api/2762; it has been noted by GNATS.

From: Aidan Cully <aidan@panix.com>
To: apbugs@apache.org
Cc:  Subject: apache-api/2762: subprocess cleanup can fail on restart/shutdown
Date: Fri, 21 May 1999 18:19:38 -0400

 This has been happening here as well, with Apache 1.3.5dev.  I've got,
 in my httpd.conf, the line
 ErrorLog "|/usr/local/bin/aplog.pl"
 .  As you all probably know, apache sees this and runs it using /bin/sh
 as a wrapper, like so:
 /bin/sh -c '/usr/local/bin/aplog.pl'
 .  When apache gets kill -HUPped, it _does_ send the SIGTERM, followed
 by the SIGKILL to the 'sh' process, which dies, but then the aplog.pl
 process doesn't get killed along with it.  You can work around it by
 substituting
 ErrorLog "|exec /usr/local/bin/aplog.pl"
 for
 ErrorLog "|/usr/local/bin/aplog.pl"
 .
 
 --aidan
 -- 
 Aidan Cully         "Chihuahuahuahuahua."
 Panix Staff           --The Sugercubes
 aidan@panix.com

Mime
View raw message