]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Set crash handler all the time
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 31 Oct 2022 20:13:04 +0000 (20:13 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 31 Oct 2022 20:13:04 +0000 (20:13 +0000)
src/rspamd.c

index d0b38285647ea64f1c108d77df870595c53f177f..17c5fc4933636c4002eae3cfaeedc8cf1fd031ef 100644 (file)
@@ -1503,9 +1503,7 @@ main (gint argc, gchar **argv, gchar **env)
        rspamd_main->pid = getpid ();
        rspamd_main->type = type;
 
-       if (!valgrind_mode) {
-               rspamd_set_crash_handler (rspamd_main);
-       }
+       rspamd_set_crash_handler (rspamd_main);
 
        /* Ignore SIGPIPE as we handle write errors manually */
        sigemptyset (&sigpipe_act.sa_mask);