X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.cc;h=b28decc23a68b65d528ef489158f91c574727bc5;hb=7175ac2b5aec7aface6a2f86df32dd0386e0cc05;hp=4d1de42afbb9341b577e03b6e7ad25894b6db997;hpb=b9a7f6fbcbc1b3cef535091531bd05bbb9b385a1;p=chaz%2Fopenbox diff --git a/src/openbox.cc b/src/openbox.cc index 4d1de42a..b28decc2 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -70,6 +70,7 @@ void Openbox::signalHandler(int signal) printf("Caught signal %d. Exiting.\n", signal); instance->shutdown(); break; + case SIGFPE: case SIGSEGV: printf("Caught signal %d. Aborting and dumping core.\n", signal); @@ -109,6 +110,7 @@ Openbox::Openbox(int argc, char **argv) action.sa_handler = Openbox::signalHandler; action.sa_mask = sigset_t(); action.sa_flags = SA_NOCLDSTOP | SA_NODEFER; + sigaction(SIGUSR1, &action, (struct sigaction *) 0); sigaction(SIGPIPE, &action, (struct sigaction *) 0); sigaction(SIGSEGV, &action, (struct sigaction *) 0); sigaction(SIGFPE, &action, (struct sigaction *) 0);