From 319d4817ec24add9698c3870fdb12f573e42f602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Giedrius=20Statkevi=C4=8Dius?= Date: Sun, 19 Jul 2015 15:47:32 +0300 Subject: daemon: exit with 0 on idle Exit with 0 (EXIT_SUCCESS) on idle due to the fact that some D-Bus implementations like kdbus are tracking daemons' exit codes and will mark mate-notification-daemon as if it failed if it exits with 1. --- src/daemon/daemon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 821de3e..6bf4af9 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -174,9 +174,7 @@ static void _notify_timeout_destroy(NotifyTimeout* nt) static gboolean do_exit(gpointer user_data) { - //g_debug("Exiting due to inactivity"); - exit(1); - + exit(0); return FALSE; } -- cgit v1.2.1