]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: correctly proceed to immediate shutdown if scheduling fails 10061/head
authorDimitri John Ledkov <xnox@ubuntu.com>
Tue, 11 Sep 2018 09:41:56 +0000 (10:41 +0100)
committerDimitri John Ledkov <xnox@ubuntu.com>
Tue, 11 Sep 2018 09:41:56 +0000 (10:41 +0100)
commit940bec70bb29b105acefd540cd4c7b0b29571de1
tree2bc7e588d8675a1742520daadaff3d13462ca6d3
parentcf9cda441ad406417f67e1d919a2a91ee53b4cda
systemctl: correctly proceed to immediate shutdown if scheduling fails

Actually check the return code from logind_schedule_shutdown() and proceed to
immediate shutdown if that fails. Negative return codes can be returned if
systemctl is compiled without logind support, or if logind otherwise failed
(either too old, disabled/masked, or it is incomplete
systemd-shim/systemd-service implementation).
src/systemctl/systemctl.c