1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-24 02:03:54 +03:00

Merge pull request #12014 from poettering/systemctl-exit-fix

systemctl fallback error propagation fix
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2019-03-21 17:37:09 +01:00 committed by GitHub
commit 9dd6ccf7c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8941,7 +8941,7 @@ static int reload_with_fallback(void) {
static int start_with_fallback(void) {
/* First, try systemd via D-Bus. */
if (start_unit(0, NULL, NULL) >= 0)
if (start_unit(0, NULL, NULL) == 0)
return 0;
/* Nothing else worked, so let's try /dev/initctl */