aboutsummaryrefslogtreecommitdiffstats
path: root/src/signal_check.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2006-07-18 23:38:21 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2006-07-18 23:38:21 +0000
commit9774768b97c8ab432dfbf961f294f77fd2591822 (patch)
tree4de1018ada0b0fc22a525866aece8a7057a3fc89 /src/signal_check.c
parentec19a53f23da015bf7df6d14c300319a9d181a11 (diff)
downloadmpd-9774768b97c8ab432dfbf961f294f77fd2591822.tar.gz
mpd-9774768b97c8ab432dfbf961f294f77fd2591822.tar.xz
mpd-9774768b97c8ab432dfbf961f294f77fd2591822.zip
Initialize sigaction.sa_mask to an empty set in a few places we forgot to
git-svn-id: https://svn.musicpd.org/mpd/trunk@4400 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/signal_check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/signal_check.c b/src/signal_check.c
index ab6ffce74..5764f9051 100644
--- a/src/signal_check.c
+++ b/src/signal_check.c
@@ -33,6 +33,7 @@ static void __set_signal_handler(int sig, void (* handler)(int))
{
struct sigaction act;
act.sa_flags = 0;
+ sigemptyset(&act.sa_mask);
act.sa_handler = handler;
while(sigaction(sig, &act, NULL) && errno==EINTR);
}