X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fsystemctl%2Fsystemctl.c;h=d25b7d6fae90ecf93a7951257b44d278aa4ea4d8;hp=e3818cd6df9ea809c503b95c7df92c629e5bc69f;hb=d0ede8f1c555500dceebd3cc8a8e877ed1d89de6;hpb=94c01aeb1049a87435e046245b8e5d975b778c60 diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index e3818cd6d..d25b7d6fa 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -3938,9 +3938,9 @@ static int daemon_reload(DBusConnection *bus, char **args) { /* There's always a fallback possible for * legacy actions. */ r = -EADDRNOTAVAIL; - else if (r == -ETIMEDOUT && streq(method, "Reexecute")) - /* On reexecution, we expect a disconnect, not - * a reply */ + else if ((r == -ETIMEDOUT || r == -ECONNRESET) && streq(method, "Reexecute")) + /* On reexecution, we expect a disconnect, not a + * reply */ r = 0; else if (r < 0) log_error("Failed to issue method call: %s", bus_error_message(&error));