summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2013-12-28 12:52:29 -0800
committerEric Anholt <eric@anholt.net>2014-04-09 16:12:52 -0700
commit7496364923d80e97b360d1b275fe8625305e5ba7 (patch)
tree63a6b1aaee19932879bc4e82c4671361ad5a8a9b
parent4db9d761a8684d05c15ed2d824744b6e67f0025a (diff)
os: Initialize the set of signals to be suppressed during our handler.global-glx-context
Fixes a valgrind complaint: ==8805== Syscall param rt_sigaction(act->sa_mask) points to uninitialised byte(s) ==8805== at 0x5EB8315: __libc_sigaction (sigaction.c:66) ==8805== by 0x5B13DA: busfault_init (busfault.c:145) ==8805== by 0x5A60A2: OsInit (osinit.c:191) ==8805== by 0x46EBA2: dix_main (main.c:163) Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r--os/busfault.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/busfault.c b/os/busfault.c
index 43bb6ea8a..ac0268fd5 100644
--- a/os/busfault.c
+++ b/os/busfault.c
@@ -142,6 +142,7 @@ busfault_init(void)
act.sa_sigaction = busfault_sigaction;
act.sa_flags = SA_SIGINFO;
+ sigemptyset(&act.sa_mask);
if (sigaction(SIGBUS, &act, &old_act) < 0)
return FALSE;
previous_busfault_sigaction = old_act.sa_sigaction;