]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Use shorter interval to check when processes have stopped
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Sun, 11 Dec 2022 21:13:09 +0000 (23:13 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 13 Dec 2022 09:56:41 +0000 (09:56 +0000)
Instead of waiting 100ms between checks, wait only 10ms. This makes
shutdown slightly faster.

src/master/service-monitor.c

index 1796e33b3f3890e5e4f3d76a03bf7bf8cfba3fdc..42422330b3ed3b1bb8d259edf4e1cd96e25450fe 100644 (file)
@@ -614,7 +614,7 @@ static void services_monitor_wait(struct service_list *service_list)
                if (finished ||
                    timeval_diff_msecs(&ioloop_timeval, &tv_start) > MAX_DIE_WAIT_MSECS)
                        break;
-               i_sleep_msecs(100);
+               i_sleep_msecs(10);
        }
 }