don't install SIGBUS handler if we are running wayland-only
authorChris Michael <cp.michael@samsung.com>
Tue, 3 Mar 2015 14:54:23 +0000 (09:54 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 3 Mar 2015 14:54:23 +0000 (09:54 -0500)
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>
src/bin/e_main.c

index a185887cd415d0db0c2ad677bc35f8bb2a14ca2a..d7bb2c1baa6919f87f642f2706004649ef5e3432 100644 (file)
@@ -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;