all repos — openbox @ f71a1fc7d2d7f3c860fe137427a534ddef09fd17

openbox fork - make it a bit more like ryudo

grab SIGUSR1
Dana Jansens danakj@orodu.net
commit

f71a1fc7d2d7f3c860fe137427a534ddef09fd17

parent

3d8ffcc2cb23901e492426f0249bdc5504c2f642

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/openbox.ccsrc/openbox.cc

@@ -70,6 +70,7 @@ case SIGPIPE:

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 @@ // set up the signal handler

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);