Skip to content

Commit

Permalink
main_reload: save and restore prefork
Browse files Browse the repository at this point in the history
We only honour the prefork at startup time.
  • Loading branch information
omar-polo committed Aug 3, 2024
1 parent 36d6d35 commit 2cd6c88
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gmid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}

Expand Down

0 comments on commit 2cd6c88

Please sign in to comment.