summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-12 05:29:56 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-12 05:40:05 +0100
commitf8e11cda5316055c381f45bd30843c1b54cd323b (patch)
treef2b8280198ce61b34db2e99af5cbf54120dd96f9
parent6d99330e26977a9970e33fd83085c8c8c9de660f (diff)
bus: properly return an error when we detect a method call timeout
-rw-r--r--src/libsystemd-bus/sd-bus.c2
1 files changed, 2 insertions, 0 deletions
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) {