diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-07 01:49:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-07 01:49:32 +0000 |
| commit | f71a1fc7d2d7f3c860fe137427a534ddef09fd17 (patch) | |
| tree | 3c1ff74f4e43fc0b40282e2814a6b57651576731 /src/openbox.cc | |
| parent | 3d8ffcc2cb23901e492426f0249bdc5504c2f642 (diff) | |
grab SIGUSR1
Diffstat (limited to 'src/openbox.cc')
| -rw-r--r-- | src/openbox.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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); |
