[PATCH] Trap SIGBUS to handle truncated shared memory segments
Keith Packard
keithp at keithp.com
Wed Nov 6 03:43:05 CET 2013
Julien Cristau <jcristau at debian.org> writes:
> maybe change that exit() to FatalError()?
Yeah, not actually necessary as previous_busfault_sigaction will always
be set, but a trivial change to make.
diff --git a/os/busfault.c b/os/busfault.c
index 45ee074..78e7693 100644
--- a/os/busfault.c
+++ b/os/busfault.c
@@ -131,7 +131,7 @@ panic:
if (previous_busfault_sigaction)
(*previous_busfault_sigaction)(sig, info, param);
else
- exit(1);
+ FatalError("bus error");
}
Bool
--
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20131105/c73873df/attachment.pgp>
More information about the xorg-devel
mailing list