summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-rtnl
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-12-29 01:54:04 +0100
committerTom Gundersen <teg@jklm.no>2014-12-29 01:59:49 +0100
commitb551ddd380c3b8ddacf86efe815654f7eb6b4952 (patch)
tree5455147c75fc5ce876e1d7e1653ee7d555bda8d2 /src/libsystemd/sd-rtnl
parentf55dc7c96ef6a8db32451a0d5f708090591a9141 (diff)
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.
Diffstat (limited to 'src/libsystemd/sd-rtnl')
-rw-r--r--src/libsystemd/sd-rtnl/sd-rtnl.c2
1 files changed, 2 insertions, 0 deletions
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)