]> Dogcows Code - chaz/openbox/commitdiff
print the signal handler messages only when debugging
authorDana Jansens <danakj@orodu.net>
Wed, 15 Oct 2003 03:08:47 +0000 (03:08 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 15 Oct 2003 03:08:47 +0000 (03:08 +0000)
openbox/openbox.c

index 3ffaded81ce4127ba7493a97ee54058b908fa66a..c0aa9a068838284ede69aafe36bec062b78639d8 100644 (file)
@@ -325,13 +325,13 @@ int main(int argc, char **argv)
 static void signal_handler(int signal, gpointer data)
 {
     if (signal == SIGUSR1) {
-       fprintf(stderr, "Caught signal %d. Restarting.\n", signal);
+        ob_debug("Caught signal %d. Restarting.\n", signal);
         ob_restart();
     } else if (signal == SIGUSR2) {
-       fprintf(stderr, "Caught signal %d. Reconfiguring.\n", signal);
+        ob_debug("Caught signal %d. Reconfiguring.\n", signal);
         ob_reconfigure();
     } else {
-       fprintf(stderr, "Caught signal %d. Exiting.\n", signal);
+        ob_debug("Caught signal %d. Exiting.\n", signal);
         /* TERM and INT return a 0 code */
         ob_exit(!(signal == SIGTERM || signal == SIGINT));
     }
This page took 0.02364 seconds and 4 git commands to generate.