From 685a44cf6cf16f1676ab92540460aa53e3ce02ef Mon Sep 17 00:00:00 2001 From: robs Date: Mon, 19 Feb 2001 06:16:27 +0000 Subject: [PATCH] Added code so if the last instance of a dynamic application died without provocation, then don't restart it if singleThreshold > 0 (i.e. if the configuration allows the last instance to be killed, then allow it to die). Andrew Benham [adsb@bigfoot.com] --- CHANGES | 5 +++++ fcgi_pm.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 18d18e0..77a1022 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,10 @@ 2.2.11 + *) Added code so if the last instance of a dynamic application died without + provocation, then don't restart it if singleThreshold > 0 (i.e. if the + configuration allows the last instance to be killed, then allow it to die). + Andrew Benham [adsb@bigfoot.com] + *) Fix the loadFactor calculation used to determine when dyanmic applications could be killed off due to low demand [adsb@bigfoot.com]. diff --git a/fcgi_pm.c b/fcgi_pm.c index e325f98..f8b5312 100644 --- a/fcgi_pm.c +++ b/fcgi_pm.c @@ -1,5 +1,5 @@ /* - * $Id: fcgi_pm.c,v 1.48 2001/02/19 06:13:03 robs Exp $ + * $Id: fcgi_pm.c,v 1.49 2001/02/19 06:16:27 robs Exp $ */ @@ -1700,7 +1700,7 @@ ChildFound: /* A dynamic app died or exited without provocation from the PM */ s->numFailures++; - if (dynamicAutoRestart || s->numProcesses <= 0) + if (dynamicAutoRestart || (s->numProcesses <= 0 && dynamicThreshold1 == 0)) s->procs[i].state = STATE_NEEDS_STARTING; else s->procs[i].state = STATE_READY; -- 2.11.4.GIT