httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23616] - rotatelogs.exe stays in memory after apache is terminated
Date Wed, 10 Jan 2007 20:04:50 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=23616>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=23616





------- Additional Comments From rpluem@apache.org  2007-01-10 12:04 -------
(In reply to comment #21)

> 
> Ok, I found a post ( http://www.apachelounge.com/forum/viewtopic.php?t=568 )
> where someone suggested this:
> >Looks like there's a bug in server/log.c in function piped_log_spawn
> >((status = apr_procattr_cmdtype_set(procattr,
> >APR_SHELLCMD_ENV)) != APR_SUCCESS) ||
> >
> >should read
> >
> >((status = apr_procattr_cmdtype_set(procattr,
> >APR_PROGRAM_ENV)) != APR_SUCCESS)
> >
> >After this patch, when you close the main program, the piped processes are also
> >killed off.
> 
> I applied the suggestion to log.c and recompiled.  The result fixed one of two
> issues I see.
> 1.  for every log pipe (rotatelogs.exe) spawned, there is a corrisponding
> cmd.exe in the task manager
>   This was not effected by the patch
> 2.  when apache exits, or in some cases, when logs rotate; the piped program
> (rotatelogs.exe) are not shut down and live on.
>   This was FIXED by the change, they now exit when apache exits.

By which change? The one Joe mentioned in comment #16 or the one mentioned on
www.apachelounge.com?

> 
> anyone have any ideas on the first issue?

This is caused by using APR_SHELLCMD_ENV instead of APR_PROGRAM_ENV. But it is
an ongoing discussion whether this is a bug or a feature. Unix people tend more
to the idea of that being a feature whereas windows people are more likely to
see this as a bug.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message