]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Show count of workers to be killed
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 31 Mar 2020 12:12:35 +0000 (13:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 31 Mar 2020 12:12:35 +0000 (13:12 +0100)
src/rspamd.c

index 20dc06bdc77443c597df160846a5dfdd36f4a328..dd47956a2c07f50c22e3dd7ac6c124bcfc729965 100644 (file)
@@ -1024,7 +1024,8 @@ rspamd_term_handler (struct ev_loop *loop, ev_signal *w, int revents)
                rspamd_main->wanna_die = TRUE;
                shutdown_ts = MAX (SOFT_SHUTDOWN_TIME,
                                rspamd_main->cfg->task_timeout * 2.0);
-               msg_info_main ("catch termination signal, waiting for children for %.2f seconds",
+               msg_info_main ("catch termination signal, waiting for %d children for %.2f seconds",
+                               (gint)g_hash_table_size (rspamd_main->workers),
                                valgrind_mode ? shutdown_ts * 10 : shutdown_ts);
                /* Stop srv events to avoid false notifications */
                g_hash_table_foreach (rspamd_main->workers, stop_srv_ev, rspamd_main);