summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2021-01-16 08:20:59 +0100
committerAllan McRae <allan@archlinux.org>2021-01-19 03:38:57 +0100
commit8ed98023b45d1cdea4217f7152dcdc77944a0ea7 (patch)
treed8fe475d665bfaa90fb6ca2f2c259bf36fc04e9e /lib
parenta4931704205718869fdf62d0e20a2a4b27216436 (diff)
downloadpacman-8ed98023b45d1cdea4217f7152dcdc77944a0ea7.tar.gz
pacman-8ed98023b45d1cdea4217f7152dcdc77944a0ea7.tar.xz
sighandler: initialize sigaction fields
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 9ae08745..3fbd757a 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -562,7 +562,9 @@ static void _alpm_reset_signals(void)
0
};
struct sigaction def;
+ def.sa_flags = 0;
def.sa_handler = SIG_DFL;
+ sigemptyset(&def.sa_mask);
for(i = signals; *i; i++) {
sigaction(*i, &def, NULL);
}