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>
Tue, 11 Jan 2022 19:07:43 +0000 (20:07 +0100)
commite6ca5aa8ac8d79217d11240b09dfbdb9364cdb36
treeb27e477885fa6ca7c9298ba0990f357675954a2b
parenta69c240157e2ca066130c12bb061e0065f2c2425
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)
(cherry picked from commit fb9bbbee6a3c09b75817f9f343176fa2170fdb31)
src/login/logind-dbus.c