X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsystemctl.c;h=99ada38309b7e3ab02a94f99b52e270cc79b7ae4;hb=9131f660eedb29d18a29e6efff49c485e683c56c;hp=10c6319b4e840a21c8786eaadb74bfa5f1d89f6c;hpb=e190aa0be1fa6cb1f56e036598ba90d58d16d9e8;p=elogind.git diff --git a/src/systemctl.c b/src/systemctl.c index 10c6319b4..99ada3830 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -3323,6 +3323,13 @@ static int daemon_reload(DBusConnection *bus, char **args, unsigned n) { goto finish; } + if (streq(method, "Reexecute") && dbus_error_has_name(&error, DBUS_ERROR_NO_REPLY)) { + /* On reexecution, we expect a disconnect, not + * a reply */ + r = 0; + goto finish; + } + log_error("Failed to issue method call: %s", bus_error_message(&error)); r = -EIO; goto finish;