]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/login/logind-dbus.c
logind: do not propagate error in delayed action 22018/head
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>
Wed, 5 Jan 2022 14:19:13 +0000 (15:19 +0100)
commit8207b8321bbbcbd19a345deb77d455d98e6ffb84
treec313340f96264a558a41336e62a6da5f8c2209b5
parent5ca99dfabda20927a0d47e5f19339d1b48f82f7a
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.
src/login/logind-dbus.c