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 Thu, 11 Jan 2007 16:37:51 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 tonyg@guadagno.org  2007-01-11 08:37 -------
(In reply to comment #22)
> (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.



> By which change? The one Joe mentioned in comment #16 or the one mentioned on
> www.apachelounge.com?
see http://issues.apache.org/bugzilla/show_bug.cgi?id=23616#c19 , Joe's
suggestion did not work.  The apachelounge suggestion works to solve the issue
about the rotatelogs not exiting when apache exits.  So I don't understand your
comment.  I am using APR_PROGRAM_ENV now.  whether using APR_PROGRAM_ENV or
APR_SHELLCMD_ENV i get one cmd.exe process for each rotatelogs process.  Any way
to get rid of them?  or is that just the way it is?


-- 
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