summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiedrius Statkevičius <[email protected]>2015-07-19 15:47:32 +0300
committerGiedrius Statkevičius <[email protected]>2015-07-19 15:47:32 +0300
commit319d4817ec24add9698c3870fdb12f573e42f602 (patch)
tree87d5a4d5e60a5a7d5bb9feeaa21b63b0ee66fe74
parent95a7399a73782de48d4e821c84bd0fc59a590f10 (diff)
downloadmate-notification-daemon-319d4817ec24add9698c3870fdb12f573e42f602.tar.bz2
mate-notification-daemon-319d4817ec24add9698c3870fdb12f573e42f602.tar.xz
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.
-rw-r--r--src/daemon/daemon.c4
1 files changed, 1 insertions, 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;
}