httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject sigalrm and such
Date Wed, 02 Jun 1999 06:18:25 GMT
Graham, this could be related to your unkilled child problem... give the
patch a try. 

I dunno, I always just suspect it's someone doing an alarm() or sleep() 
somewhere.  But maybe that "someone" is a stupid solaris library bug (a
few have been known to exist)... and not a 3rd party developer.

Dean

---------- Forwarded message ----------
Date: Thu, 27 May 1999 13:52:35 -0700
From: Derek Andree <dxandr2@uswest.com>
To: Dean Gaudet <dgaudet@arctic.org>
Subject: Re: config/3906: Servers hang on either Keepalive or on Read (if  keepalive is turned
off)

Dean,

Yes indeed, this seems to fix the problem!  I'll let you know if read or
keepalives get stuck, but the server has been running now under heavy
load for over 3 hours without a hitch...


Thanks for your help!


Dean Gaudet wrote:
> 
> BTW, here's a patch you may want to try.  It's just a wild guess though...
> 
> Dean
> 
> Index: main/http_main.c
> ===================================================================
> RCS file: /home/cvs/apache-1.3/src/main/http_main.c,v
> retrieving revision 1.430
> diff -u -r1.430 http_main.c
> --- http_main.c 1999/04/20 19:15:39     1.430
> +++ http_main.c 1999/04/21 00:07:43
> @@ -3601,6 +3601,7 @@
>  #endif
>  #endif
>      signal(SIGALRM, alrm_handler);
> +    signal(SIGUSR2, alrm_handler);
> 
>  #ifdef OS2
>  /* Stop Ctrl-C/Ctrl-Break signals going to child processes */
> @@ -4105,7 +4106,7 @@
>                 else if (ps->last_rtime + ss->timeout_len < now) {
>                     /* no progress, and the timeout length has been exceeded */
>                     ss->timeout_len = 0;
> -                   kill(ps->pid, SIGALRM);
> +                   kill(ps->pid, SIGUSR2);
>                 }
>             }
>  #endif

-- 
Derek Andree
Mobile Village Development
dxandr2@uswest.com

Diplomacy is the art of saying "nice doggy" until you can find a rock.


Mime
View raw message