chiark / gitweb /
bus: properly return an error when we detect a method call timeout
[elogind.git] / src / libsystemd-bus / sd-bus.c
index edd917e30375786811727fd44590625e99ce3df1..37408cf7b4e3007dfac882e496dbcc703f97d320 100644 (file)
@@ -1754,6 +1754,8 @@ _public_ int sd_bus_call(
                 r = bus_poll(bus, true, left);
                 if (r < 0)
                         return r;
+                if (r == 0)
+                        return -ETIMEDOUT;
 
                 r = dispatch_wqueue(bus);
                 if (r < 0) {