httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Questionable bug in SIGTERM handling.. (fwd)
Date Fri, 12 Sep 1997 19:50:55 GMT
One possible workaround in 1.2 would be to have your log child do
something like:

    if (fork()) exit (0);

Which makes it spawn a second child that won't be killed by apache... err well
you probably have to set your process group too.  But that's the idea
anyhow.

Dean

On Fri, 12 Sep 1997, Alexei Kosut wrote:

> On Fri, 12 Sep 1997, Jules Bean wrote:
> 
> > The way apache (1.2.4) handles SIGTERM handling is questionable....
> > 
> > I understand it SIGKILL the child web servers, to ensure a quick exit, but
> > the problem is that it SIGKILLs all its children... including, for
> > example, any program spawned as a log pipe.  This program then can't catch
> > the signal to flush its buffer, leaving broken log files.
> 
> Yes, this is a known problem with Apache 1.2. It has been fixed in the
> 1.3 development tree, and Apache 1.3b1 (due out shortly) should correctly
> send a SIGTERM to the Apache children, and clean up and exit gracefully.
> 
> Thanks for using Apache!
> 
> -- Alexei Kosut <akosut@organic.com>
> 
> 


Mime
View raw message