chiark / gitweb /
systemctl: suppress error message when doing "systemctl daemon-reexec"
[elogind.git] / src / shared / dbus-common.c
index f57956732136f3e65276c44f56079016f082bb40..c727cae7cd3c2fdb259dad9629d52e4a08803172 100644 (file)
@@ -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;