systemctl: if we managed to reexec the init system via the bus don't retry via signal

If we managed to reeexec the init system via the bus this allows us to
provide synchronous behaviour to callers. This is all lost if we then
repeat the reexecution via SIGTERM.

https://bugzilla.redhat.com/show_bug.cgi?id=698198
This commit is contained in:
Lennart Poettering 2011-08-31 03:31:27 +02:00
parent 3745b50031
commit d76702a7b2
1 changed files with 1 additions and 1 deletions

View File

@ -5038,7 +5038,7 @@ static int reload_with_fallback(DBusConnection *bus) {
if (bus) {
/* First, try systemd via D-Bus. */
if (daemon_reload(bus, NULL) > 0)
if (daemon_reload(bus, NULL) >= 0)
return 0;
}