summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-15 03:08:47 +0000
committerDana Jansens <danakj@orodu.net>2003-10-15 03:08:47 +0000
commite7e51c3ef72d7d9fa8fd1c7266b88765ece1dc67 (patch)
tree4871d46047b50707d1069bfcbe79696aa49a3383 /openbox/openbox.c
parentfb1627ba903e4b76b80abbdd613f477212968d0a (diff)
print the signal handler messages only when debugging
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index 3ffaded8..c0aa9a06 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -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));
}