summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sighandler.c1
1 files changed, 1 insertions, 0 deletions
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 */