sd-resolve: propagate timeouts in sd_resolve_wait() the same way as in sd_bus_wait(): ETIMEDOUT

Thankfully this is an internal API still, so we can mkae changes like
this.
This commit is contained in:
Lennart Poettering
2017-11-27 17:08:34 +01:00
parent 534ab2ea1a
commit 971fea3203
2 changed files with 2 additions and 1 deletions
+2
View File
@@ -890,6 +890,8 @@ _public_ int sd_resolve_wait(sd_resolve *resolve, uint64_t timeout_usec) {
if (r < 0)
return r;
if (r == 0)
return -ETIMEDOUT;
return sd_resolve_process(resolve);
}