1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 18:27:04 +03:00

bus: properly return an error when we detect a method call timeout

This commit is contained in:
Lennart Poettering 2013-12-12 05:29:56 +01:00
parent 6d99330e26
commit f8e11cda53

View 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) {