projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60236c4
)
ustream-fd: fix logic invert of write polling.
author
Yousong Zhou
<yszhou4tech@gmail.com>
Wed, 21 Jan 2015 13:21:26 +0000
(21:21 +0800)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 21 Jan 2015 19:02:03 +0000
(20:02 +0100)
ustream_write_pending() returns true if write buffer was flushed there.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
ustream-fd.c
patch
|
blob
|
history
diff --git
a/ustream-fd.c
b/ustream-fd.c
index 4abb53053bbc2bb6440cb31051851cee71e112e2..bc44d4a825425f49e8fd9c3c63c768bf862f3e46 100644
(file)
--- a/
ustream-fd.c
+++ b/
ustream-fd.c
@@
-119,7
+119,7
@@
static bool __ustream_fd_poll(struct ustream_fd *sf, unsigned int events)
ustream_fd_read_pending(sf, &more);
if (events & ULOOP_WRITE) {
- if (
!
ustream_write_pending(s))
+ if (ustream_write_pending(s))
ustream_fd_set_uloop(s, false);
}