aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-31 13:12:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-03-31 13:12:35 +0100
commit26e5e6d668ca2c8d34a5d3fe3ac1d2796fc3e4f5 (patch)
tree2701e71ea6f7269073b0c6f632f39a7246be07db /src/rspamd.c
parentfad056e59bea821222f9f4123550dd424e0836f5 (diff)
downloadrspamd-26e5e6d668ca2c8d34a5d3fe3ac1d2796fc3e4f5.tar.gz
rspamd-26e5e6d668ca2c8d34a5d3fe3ac1d2796fc3e4f5.zip
[Minor] Show count of workers to be killed
Diffstat (limited to 'src/rspamd.c')
-rw-r--r--src/rspamd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c
index 20dc06bdc..dd47956a2 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -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);