From 8ed98023b45d1cdea4217f7152dcdc77944a0ea7 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Fri, 15 Jan 2021 23:20:59 -0800 Subject: sighandler: initialize sigaction fields Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- src/pacman/sighandler.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/pacman/sighandler.c b/src/pacman/sighandler.c index ff9c6ac4..9794b30b 100644 --- a/src/pacman/sighandler.c +++ b/src/pacman/sighandler.c @@ -106,6 +106,7 @@ static void segv_handler(int signum) /* restore the default handler */ _reset_handler(signum); /* unblock SIGSEGV */ + sigemptyset(&segvset); sigaddset(&segvset, signum); sigprocmask(SIG_UNBLOCK, &segvset, NULL); /* re-raise to trigger a core dump */ -- cgit v1.2.3-70-g09d2