httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Re: Apache = CPU hog? (fwd)
Date Mon, 29 Apr 1996 17:04:20 GMT
Rob Hartill wrote:
> 
>  
> > I'm fairly sure I've seen SCO 5 fail to clear up the children, too.
> > 
> > Cheers,
> > 
> > Ben.
> 
> None of the children were being removed, so there must be something
> wrong with
> 
> void sig_term() {
>     log_error("httpd: caught SIGTERM, shutting down", server_conf);
>     cleanup_scoreboard();
> #ifndef NO_KILLPG
>     killpg(pgrp,SIGKILL);
> #else
>     kill(-pgrp,SIGKILL);
> #endif
>     shutdown(sd,2);
>     close(sd);
>     exit(1);
> }
> 
> (http_main.c) on his system ?

The manual excerpt I quoted implies that under some circumstances sig_term()
will _not be called_. This would neatly explain the observed effect.

Cheers,

Ben.

> 
> 
> 

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.

Mime
View raw message