summaryrefslogtreecommitdiff
path: root/hw/xfree86/common
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2016-06-07 15:52:11 -0400
committerAdam Jackson <ajax@redhat.com>2016-06-08 11:36:31 -0400
commit6178b1c91cfc9e860914acc6f0be2f2d2e07a124 (patch)
treeea2fdadb27b3103f21f5d58ab4014a61953ed7a0 /hw/xfree86/common
parent8174daa6bd3f0c792425a5ebef63a6a9ce7d00a4 (diff)
dix: Use OsSignal() not signal()
As the man page for the latter states: The effects of signal() in a multithreaded process are unspecified. We already have an interface to call sigaction() instead, use it. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw/xfree86/common')
-rw-r--r--hw/xfree86/common/xf86Init.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index 323ac11fc..93c0d74be 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -308,16 +308,16 @@ InstallSignalHandlers(void)
OsRegisterSigWrapper(xf86SigWrapper);
}
else {
- signal(SIGSEGV, SIG_DFL);
- signal(SIGILL, SIG_DFL);
+ OsSignal(SIGSEGV, SIG_DFL);
+ OsSignal(SIGILL, SIG_DFL);
#ifdef SIGEMT
- signal(SIGEMT, SIG_DFL);
+ OsSignal(SIGEMT, SIG_DFL);
#endif
- signal(SIGFPE, SIG_DFL);
- signal(SIGBUS, SIG_DFL);
- signal(SIGSYS, SIG_DFL);
- signal(SIGXCPU, SIG_DFL);
- signal(SIGXFSZ, SIG_DFL);
+ OsSignal(SIGFPE, SIG_DFL);
+ OsSignal(SIGBUS, SIG_DFL);
+ OsSignal(SIGSYS, SIG_DFL);
+ OsSignal(SIGXCPU, SIG_DFL);
+ OsSignal(SIGXFSZ, SIG_DFL);
}
}
@@ -924,7 +924,7 @@ OsVendorInit(void)
{
static Bool beenHere = FALSE;
- signal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */
+ OsSignal(SIGCHLD, SIG_DFL); /* Need to wait for child processes */
if (!beenHere) {
umask(022);