From: Lennart Poettering Date: Mon, 27 Nov 2017 15:28:53 +0000 (+0100) Subject: sd-resolve: propagate timeouts in sd_resolve_wait() the same way as in sd_bus_wait... X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cffb9dfa119b3e156f914a402e65e42f80c8d409;p=elogind.git 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. --- diff --git a/src/basic/io-util.c b/src/basic/io-util.c index cc6dfa8c1..2141634da 100644 --- a/src/basic/io-util.c +++ b/src/basic/io-util.c @@ -199,7 +199,6 @@ int fd_wait_for_event(int fd, int event, usec_t t) { r = ppoll(&pollfd, 1, t == USEC_INFINITY ? NULL : timespec_store(&ts, t), NULL); if (r < 0) return -errno; - if (r == 0) return 0;