summaryrefslogtreecommitdiff
path: root/src/shared/dbus-common.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-07-10 20:44:21 +0200
committerLennart Poettering <lennart@poettering.net>2013-07-10 23:41:03 +0200
commitd0ede8f1c555500dceebd3cc8a8e877ed1d89de6 (patch)
tree07ef4dbe04f4306b8bf82b6df1c867f903d5c1f4 /src/shared/dbus-common.c
parent94c01aeb1049a87435e046245b8e5d975b778c60 (diff)
systemctl: suppress error message when doing "systemctl daemon-reexec"
When we issue a reexecution request via the private socket we need to expect a "Disconnected" in addition to "NoReply" when the connection is terminated.
Diffstat (limited to 'src/shared/dbus-common.c')
-rw-r--r--src/shared/dbus-common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/dbus-common.c b/src/shared/dbus-common.c
index f579567321..c727cae7cd 100644
--- a/src/shared/dbus-common.c
+++ b/src/shared/dbus-common.c
@@ -1383,6 +1383,8 @@ int bus_method_call_with_reply(
r = -EACCES;
else if (dbus_error_has_name(&error, DBUS_ERROR_NO_REPLY))
r = -ETIMEDOUT;
+ else if (dbus_error_has_name(&error, DBUS_ERROR_DISCONNECTED))
+ r = -ECONNRESET;
else
r = -EIO;
goto finish;