]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve logging
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Nov 2019 12:09:09 +0000 (12:09 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 12 Nov 2019 12:09:09 +0000 (12:09 +0000)
src/rspamd.c

index 4099e500347b09ac53ae6bb91709b10c63559bf8..b7c3bd910ff03f7b409ac9414b1ffef3948e6eae 100644 (file)
@@ -950,7 +950,7 @@ rspamd_term_handler (struct ev_loop *loop, ev_signal *w, int revents)
                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",
-                               shutdown_ts);
+                               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);
                rspamd_pass_signal (rspamd_main->workers, SIGTERM);