logind: do not propagate error in delayed action
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Jan 2022 14:10:33 +0000 (15:10 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 Jan 2022 14:53:45 +0000 (15:53 +0100)
commitfb9bbbee6a3c09b75817f9f343176fa2170fdb31
tree4a5f7ed1f708c4908e92b7cdbbfa4c7ae39ee2e0
parent3af61b9224904370826423309759856a1e6257b6
logind: do not propagate error in delayed action

If the action failed, we should log about the issue, and continue.
Exiting would bring the graphical session down, which of course is not
appreciated by users.

As documented in previous commits, a non-negative return from the callback
doesn't matter, so the callback is simplified a bit.

Fixes #21991.

(cherry picked from commit 8207b8321bbbcbd19a345deb77d455d98e6ffb84)
src/login/logind-dbus.c