You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Aidan Cully <ai...@panix.com> on 1999/05/22 00:20:01 UTC

apache-api/2762: subprocess cleanup can fail on restart/shutdown

The following reply was made to PR apache-api/2762; it has been noted by GNATS.

From: Aidan Cully <ai...@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