453469e87a4948b1058962b7570843f8b71ac0c5
Bernd Wurst Ganz übler mod_fastcgi-Hack...

Bernd Wurst authored 16 years ago

1) --- fcgi_pm.c.orig	2008-04-04 09:34:20.000000000 +0200
2) +++ fcgi_pm.c	2008-04-04 09:37:58.000000000 +0200
3) @@ -128,8 +128,26 @@
4)          int numChildren = (s->directive == APP_CLASS_DYNAMIC)
5)              ? dynamicMaxClassProcs
6)              : s->numProcesses;
7) +
8) +        /* Send TERM to all processes */
9) +        for (i = 0; i < numChildren; i++, proc++) 
10) +        {
11) +            if (proc->state == FCGI_RUNNING_STATE) 
12) +            {
13) +                fcgi_kill(proc, SIGTERM);
14) +            }
15) +        }
16)          
17) +        s = s->next;
18) +    }
19) + 
20)  #ifndef WIN32
21) +    /* sleep two seconds to let the children terminate themselves */
Hanno Böck C ist doof (usleep => sleep)

Hanno Böck authored 16 years ago

22) +    sleep(2);