From f8e11cda5316055c381f45bd30843c1b54cd323b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 12 Dec 2013 05:29:56 +0100 Subject: bus: properly return an error when we detect a method call timeout --- src/libsystemd-bus/sd-bus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c index edd917e303..37408cf7b4 100644 --- a/src/libsystemd-bus/sd-bus.c +++ b/src/libsystemd-bus/sd-bus.c @@ -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) { -- cgit v1.2.3-54-g00ecf