]> git.ipfire.org Git - thirdparty/systemd.git/commit
login: do not clear wall message before shutting down
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Nov 2023 21:42:22 +0000 (06:42 +0900)
committerMike Yuan <me@yhndnzj.com>
Fri, 24 Nov 2023 03:11:57 +0000 (11:11 +0800)
commit2bab4caaf9e144758c836bec0e5a13874d5d1518
tree0ab69b0941a4c31eadc530fb1dc47a8eb5e5e194
parentb7c1f9eaf490c65c431af9fd93d974479ab315aa
login: do not clear wall message before shutting down

This fixes a regression caused by 5ed73478e1b1560274038ef30ec6f89022b4d8f6
and aa6123e85e0baea21b6daad175da43ffea30629f.

With these commits, when Reboot dbus method or friends is called,
reset_scheduled_shutdown() is called before shutting down the system,
so the wall message was cleared.

As the wall message itself is unrelated to the scheduling of shutting
down systems, let's keep the message.

Fixes #30167.
src/login/logind-dbus.c