aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-08-03 11:56:18 +0000
committerOmar Polo <op@omarpolo.com>2024-08-03 11:56:18 +0000
commit2cd6c88387bc1cccdc569d4283e140b1c2541b7a (patch)
treea0f5047bdc9e40884b24dbac39c9b40d18aeca8d
parent36d6d35389b484468658971ad75437c3358a962c (diff)
main_reload: save and restore prefork
We only honour the prefork at startup time.
-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);
}