]> Dogcows Code - chaz/openbox/commitdiff
restart on HUP
authorDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 19:18:30 +0000 (19:18 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 19:18:30 +0000 (19:18 +0000)
src/openbox.cc

index 6b5251b5b8f38e92efe2c439993582f96c01d108..e9d1250088d65aa1e71068a1a15f7a4060b8f051 100644 (file)
@@ -60,14 +60,16 @@ void Openbox::signalHandler(int signal)
   switch (signal) {
   case SIGHUP:
     // XXX: Do something with HUP? Really shouldn't, we get this when X shuts
-    //      down and hangs-up on us.
+    //      down and hangs-up on us. we also get a SIGPIPE.
+    printf("Caught HUP signal. Restarting.\n");
+    instance->restart();
+    break;
     
   case SIGINT:
   case SIGTERM:
   case SIGPIPE:
     printf("Caught signal %d. Exiting.\n", signal);
     instance->shutdown();
-
     break;
   case SIGFPE:
   case SIGSEGV:
This page took 0.026657 seconds and 4 git commands to generate.