aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gmid.c b/gmid.c
index 91d796c..cb9f694 100644
--- a/gmid.c
+++ b/gmid.c
@@ -483,6 +483,8 @@ main_configure_done(struct conf *conf)
static void
main_reload(struct conf *conf)
{
+ int prefork = conf->prefork;
+
if (conf->reload) {
log_debug("%s: already in progress: %d pending",
__func__, conf->reload);
@@ -497,6 +499,12 @@ main_reload(struct conf *conf)
return;
}
+ /*
+ * We honour the prefork number only at startup; afterwards
+ * the number of server procs in not changed.
+ */
+ conf->prefork = prefork;
+
main_configure(conf);
}