diff options
author | Omar Polo <op@omarpolo.com> | 2024-08-03 11:56:18 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2024-08-03 11:56:18 +0000 |
commit | 2cd6c88387bc1cccdc569d4283e140b1c2541b7a (patch) | |
tree | a0f5047bdc9e40884b24dbac39c9b40d18aeca8d /gmid.c | |
parent | 36d6d35389b484468658971ad75437c3358a962c (diff) |
main_reload: save and restore prefork
We only honour the prefork at startup time.
Diffstat (limited to 'gmid.c')
-rw-r--r-- | gmid.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); } |