commit f92417a: [Minor] Set crash handler all the time

Vsevolod Stakhov vsevolod at rspamd.com
Mon Oct 31 20:14:06 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-10-31 20:13:04 +0000
URL: https://github.com/rspamd/rspamd/commit/f92417acd48e03d9f44d5b393c523b4f28ac8521 (HEAD -> master)

[Minor] Set crash handler all the time

---
 src/rspamd.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/rspamd.c b/src/rspamd.c
index d0b382856..17c5fc493 100644
--- a/src/rspamd.c
+++ b/src/rspamd.c
@@ -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);


More information about the Commits mailing list