diff options
author | Tom Gundersen <teg@jklm.no> | 2014-12-29 01:54:04 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-29 01:59:49 +0100 |
commit | b551ddd380c3b8ddacf86efe815654f7eb6b4952 (patch) | |
tree | 5455147c75fc5ce876e1d7e1653ee7d555bda8d2 /src/libsystemd/sd-rtnl | |
parent | f55dc7c96ef6a8db32451a0d5f708090591a9141 (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.c | 2 |
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) |