summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <yamakuzure@gmx.net>2017-06-27 08:25:23 +0200
committerSven Eden <yamakuzure@gmx.net>2017-06-27 08:25:23 +0200
commit265fbcd7e07db9611f3f482b335add2c7979dca5 (patch)
treec4d63a40d1e8a24105e9aa6fc92d9fcbfb416d1e
parent23c9553e70641ba69d1c388d3d2cc48e4c4eed6f (diff)
Prep v231.2: elogind is a stand-alone daemon, so do not exit if suspending the system fails.
-rw-r--r--src/login/logind-dbus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c
index 7313f4329..387b824f7 100644
--- a/src/login/logind-dbus.c
+++ b/src/login/logind-dbus.c
@@ -1679,7 +1679,9 @@ int manager_dispatch_delayed(Manager *manager, bool timeout) {
manager->pending_action = HANDLE_IGNORE;
manager->action_what = 0;
+#if 0 /// It is not a critical error for elogind if suspending fails
return r;
+#endif // 0
}
return 1;