You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Arkadi Shishlov <ar...@mebius.lv> on 2005/03/08 18:00:05 UTC
Re: piped log bug?
So is there any progress with the issue or just nobody is interested?
arkadi.
>>>On my medium busy FreeBSD and Linux servers I noticed that sometimes
>>>apache leaves previous instance children in non-working state after
>>>restart. Examination with ps/strace/truss shows that all of them
>>>are writing to piped (cronolog backed) access log, but by that time
>>>all cronolog processes are already gone.
Re: piped log bug?
Posted by Andy Armstrong <an...@apache.org>.
On 8 Mar 2005, at 17:00, Arkadi Shishlov wrote:
> So is there any progress with the issue or just nobody is interested?
I don't have the original post but I may have an alternative to piped
logs if this is a problem for anyone. Sorry for the plug, especially if
it's a bit off-topic but
<http://hexten.net/sw/mod_log_rotate/index.mhtml>
does in-process log rotation.
--
Andy Armstrong, hexten.net
Re: piped log bug?
Posted by Arkadi Shishlov <ar...@mebius.lv>.
On Tue, Mar 08, 2005 at 08:11:10PM +0000, Joe Orton wrote:
> The bug being discussed here is the same as this PR, right?
> http://issues.apache.org/bugzilla/show_bug.cgi?id=26467
Yes.
arkadi.
Re: piped log bug?
Posted by Joe Orton <jo...@redhat.com>.
On Tue, Mar 08, 2005 at 09:01:20PM +0200, Arkadi Shishlov wrote:
> On Tue, Mar 08, 2005 at 01:22:46PM -0500, Jeff Trawick wrote:
> > On Tue, 08 Mar 2005 19:00:05 +0200, Arkadi Shishlov <ar...@mebius.lv> wrote:
> > > So is there any progress with the issue or just nobody is interested?
> >
> > me interested? yes
> > me have time right now? no
> >
> > The more investigation work you can do, the better.
>
> If you agree with the 'diagnosis' I can try to cook two patches to verify it.
The bug being discussed here is the same as this PR, right?
http://issues.apache.org/bugzilla/show_bug.cgi?id=26467
> 1. Do not kill pipe log process, let it read the pipe till EOF. Or a patch to
> cronolog to ignore SIGTERM.
> 2. Close pipe rd side in children. Is it possible to do in clean way via
> apr*register/whatever?
Yes - a child_init hook should be the right place to do (2), I think.
joe
Re: piped log bug?
Posted by Kiran Mendonce <ki...@india.hp.com>.
Hi Arkadi,
We've run into a similar problem. I didn't quite understand the second
solution that you suggested. How would closing the read side of the pipe
in the httpd child processes help in solving this problem ?
Thanks,
Kiran
Arkadi Shishlov wrote:
>On Tue, Mar 08, 2005 at 01:22:46PM -0500, Jeff Trawick wrote:
>
>
>>On Tue, 08 Mar 2005 19:00:05 +0200, Arkadi Shishlov <ar...@mebius.lv> wrote:
>>
>>
>>>So is there any progress with the issue or just nobody is interested?
>>>
>>>
>>me interested? yes
>>me have time right now? no
>>
>>The more investigation work you can do, the better.
>>
>>
>
>If you agree with the 'diagnosis' I can try to cook two patches to verify it.
>1. Do not kill pipe log process, let it read the pipe till EOF. Or a patch to
> cronolog to ignore SIGTERM.
>2. Close pipe rd side in children. Is it possible to do in clean way via
> apr*register/whatever?
>
>
>arkadi.
>
>
>
>
Re: piped log bug?
Posted by Arkadi Shishlov <ar...@mebius.lv>.
I pluged signal(SIGTERM, SIG_IGN) into cronolog and that solved the
problem for me.
arkadi.
Re: piped log bug?
Posted by Arkadi Shishlov <ar...@mebius.lv>.
On Tue, Mar 08, 2005 at 01:22:46PM -0500, Jeff Trawick wrote:
> On Tue, 08 Mar 2005 19:00:05 +0200, Arkadi Shishlov <ar...@mebius.lv> wrote:
> > So is there any progress with the issue or just nobody is interested?
>
> me interested? yes
> me have time right now? no
>
> The more investigation work you can do, the better.
If you agree with the 'diagnosis' I can try to cook two patches to verify it.
1. Do not kill pipe log process, let it read the pipe till EOF. Or a patch to
cronolog to ignore SIGTERM.
2. Close pipe rd side in children. Is it possible to do in clean way via
apr*register/whatever?
arkadi.
Re: piped log bug?
Posted by Jeff Trawick <tr...@gmail.com>.
On Tue, 08 Mar 2005 19:00:05 +0200, Arkadi Shishlov <ar...@mebius.lv> wrote:
> So is there any progress with the issue or just nobody is interested?
me interested? yes
me have time right now? no
The more investigation work you can do, the better.