chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c7460cc
)
sd-rtnl: rtnl_poll - fix typo
author
Tom Gundersen
<teg@jklm.no>
Mon, 29 Dec 2014 00:50:07 +0000
(
01:50
+0100)
committer
Tom Gundersen
<teg@jklm.no>
Mon, 29 Dec 2014 00:59:49 +0000
(
01:59
+0100)
This caused rtnl_poll to always return true immediately in sd_rtnl_call().
src/libsystemd/sd-rtnl/sd-rtnl.c
patch
|
blob
|
history
diff --git
a/src/libsystemd/sd-rtnl/sd-rtnl.c
b/src/libsystemd/sd-rtnl/sd-rtnl.c
index abb011ea24c675252adab551c46eeea49cbb9f04..ae3573937c7aa042afee18bc3fc0bb421a944482 100644
(file)
--- a/
src/libsystemd/sd-rtnl/sd-rtnl.c
+++ b/
src/libsystemd/sd-rtnl/sd-rtnl.c
@@
-489,7
+489,7
@@
static int rtnl_poll(sd_rtnl *rtnl, bool need_more, uint64_t timeout_usec) {
if (need_more)
/* Caller wants more data, and doesn't care about
* what's been read or any other timeouts. */
if (need_more)
/* Caller wants more data, and doesn't care about
* what's been read or any other timeouts. */
-
return
e |= POLLIN;
+ e |= POLLIN;
else {
usec_t until;
/* Caller wants to process if there is something to
else {
usec_t until;
/* Caller wants to process if there is something to