Disable SIGBUS handler
authorGreg Troxel <gdt@lexort.com>
Tue, 22 Nov 2022 13:57:16 +0000 (08:57 -0500)
committerColin Clark <colin.clark@cclark.uk>
Thu, 24 Nov 2022 15:49:35 +0000 (15:49 +0000)
commitffb0e76064eb444f4d7589dbe17bc36abece34a6
tree277aa86589ba4a6629f87d3fcdd1993fa12ff4ae
parentc56acc683ba91a626f017c21776c9c1903d2b855
Disable SIGBUS handler

This handler leads to undefined behavior.  Further, it calls mmap in a
way that POSIX says must fail with EBADF.  This commit returns to
simply taking SIGBUS if it occurs and exiting.  If that happens, then
an issue can be created and a way forward discusssed.  See
https://github.com/BestImageViewer/geeqie/issues/1052 for more
context.
src/main.cc