From: Dana Jansens Date: Sat, 4 Jan 2003 19:22:44 +0000 (+0000) Subject: dont restart on HUP. badness. restart on USR1. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=180cdd0e91799458552f581327a67be745909134;p=chaz%2Fopenbox dont restart on HUP. badness. restart on USR1. --- diff --git a/src/openbox.cc b/src/openbox.cc index 7cee8a9a..aa7fc9f6 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -58,11 +58,12 @@ Openbox *Openbox::instance = (Openbox *) 0; void Openbox::signalHandler(int signal) { switch (signal) { - case SIGHUP: - printf("Caught HUP signal. Restarting.\n"); + case SIGUSR1: + printf("Caught SIGUSR1 signal. Restarting.\n"); instance->restart(); break; - + + case SUGHUP: case SIGINT: case SIGTERM: case SIGPIPE: