summaryrefslogtreecommitdiff
path: root/hw/xfree86
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2008-12-15 11:38:00 -0800
committerKeith Packard <keithp@keithp.com>2008-12-15 11:47:12 -0800
commit6d671b2dee7d2e5481399f0bdb3323a0250a075d (patch)
tree2940327b1b142e1a0358410b9d88b3d0831515a3 /hw/xfree86
parent8f17a31aa721e42925cd6b4616ccad90497818f3 (diff)
When disabling SIGIO tracking, use SIG_IGN instead of SIG_DFL.
This avoids a race condition for drivers which mis-order the fd close and signal disable. Signed-off-by: Keith Packard <keithp@keithp.com> (cherry picked from commit 29a5b0596b396d3e4a8a014cacd3e3ef77467ab7)
Diffstat (limited to 'hw/xfree86')
-rw-r--r--hw/xfree86/os-support/shared/sigio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/os-support/shared/sigio.c b/hw/xfree86/os-support/shared/sigio.c
index f51131c6b..92bdd2988 100644
--- a/hw/xfree86/os-support/shared/sigio.c
+++ b/hw/xfree86/os-support/shared/sigio.c
@@ -229,7 +229,7 @@ xf86RemoveSIGIOHandler(int fd)
sigemptyset(&sa.sa_mask);
sigaddset(&sa.sa_mask, SIGIO);
sa.sa_flags = 0;
- sa.sa_handler = SIG_DFL;
+ sa.sa_handler = SIG_IGN;
sigaction(SIGIO, &sa, &osa);
}
}