From b551ddd380c3b8ddacf86efe815654f7eb6b4952 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 29 Dec 2014 01:54:04 +0100 Subject: sd-rtnl: rtnl_call - don't dispatch wqueue after timeout has passed Only a minor change as the timeout would be hit soon thereafetr at the next loop. --- src/libsystemd/sd-rtnl/sd-rtnl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libsystemd/sd-rtnl/sd-rtnl.c b/src/libsystemd/sd-rtnl/sd-rtnl.c index ae3573937c..7d388c9758 100644 --- a/src/libsystemd/sd-rtnl/sd-rtnl.c +++ b/src/libsystemd/sd-rtnl/sd-rtnl.c @@ -701,6 +701,8 @@ int sd_rtnl_call(sd_rtnl *rtnl, r = rtnl_poll(rtnl, true, left); if (r < 0) return r; + else if (r == 0) + return -ETIMEDOUT; r = dispatch_wqueue(rtnl); if (r < 0) -- cgit v1.2.3-54-g00ecf