You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2003/02/04 16:58:52 UTC

DO NOT REPLY [Bug 16761] New: - CustomLog with pipe spawns process during config

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16761>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16761

CustomLog with pipe spawns process during config

           Summary: CustomLog with pipe spawns process during config
           Product: Apache httpd-2.0
           Version: 2.0.44
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_log_config
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: martin@jadestone.se


This bug appears when running the command apache -k install or apache -k config 
if there are CustomLog entries in the configuration that pipe to an external 
program (e.g. rotatelogs.exe). For each piping CustomLog, Apache creates the 
corresponding process. Then the Apache process exits, leaving the logging 
processes alive, probably waiting for input on stdin (which will never come, 
since the process isn't attached to a console).

To reproduce the bug, change the CustomLog line in the default httpd.conf to:

CustomLog "|/apache2/bin/rotatelogs.exe logs/access_%Y-%m-%d.log 86400 +60" 
combined

Then execute apache -k install -f conf/httpd.conf. When the command is 
finished, check the Task Manager (or a better tool, such as Process Explorer) 
for a rotatelogs.exe process which must be killed manually.

This bug also appears with a simple test logger, so the bug is not specific to 
rotatelogs.exe.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org