diff options
-rw-r--r-- | cmogstored.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmogstored.c b/cmogstored.c index d3e8b68..1421afb 100644 --- a/cmogstored.c +++ b/cmogstored.c @@ -404,6 +404,8 @@ static void main_worker_loop(const pid_t parent) mog_cancel_disable(); /* mog_idleq_wait() now relies on this */ while (parent == 0 || parent == getppid()) { mog_notify_wait(have_mgmt); + if (do_upgrade) + upgrade_handler(); if (do_exit) cmogstored_exit(); if (have_mgmt) @@ -416,8 +418,6 @@ static void main_worker_loop(const pid_t parent) * startup, but became usable later */ iostat_running = mog_iostat_respawn(0); - if (do_upgrade) - upgrade_handler(); } syslog(LOG_INFO, "parent=%d abandoned us, dying", parent); |