forked from enlightenment/enlightenment
don't install SIGBUS handler if we are running wayland-only
Wayland shm sets up a sigbus handler for catching invalid shm region access. If we setup our sigbus handler here, then the wl-shm sigbus handler will not function properly Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
1cf7c1f151
commit
6e34bc32a0
|
@ -255,10 +255,12 @@ main(int argc, char **argv)
|
|||
sigemptyset(&action.sa_mask);
|
||||
sigaction(SIGFPE, &action, NULL);
|
||||
|
||||
#ifndef HAVE_WAYLAND_ONLY
|
||||
action.sa_sigaction = e_sigbus_act;
|
||||
action.sa_flags = SA_NODEFER | SA_RESETHAND | SA_SIGINFO;
|
||||
sigemptyset(&action.sa_mask);
|
||||
sigaction(SIGBUS, &action, NULL);
|
||||
#endif
|
||||
|
||||
action.sa_sigaction = e_sigabrt_act;
|
||||
action.sa_flags = SA_NODEFER | SA_RESETHAND | SA_SIGINFO;
|
||||
|
|
Loading…
Reference in New Issue