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:
5aed3c2
)
uloop: fix the write flag for mac os x
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 6 Feb 2011 00:56:37 +0000
(
01:56
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 6 Feb 2011 00:56:37 +0000
(
01:56
+0100)
uloop.c
patch
|
blob
|
history
diff --git
a/uloop.c
b/uloop.c
index a263a01c5f3ed457d54dcbebdcea45f8ea92d934..a8cb5062da756151aa1e9144bdc8fdc482ef0b83 100644
(file)
--- a/
uloop.c
+++ b/
uloop.c
@@
-94,7
+94,7
@@
static int register_poll(struct uloop_fd *fd, unsigned int flags)
if (changed & ULOOP_WRITE) {
uint16_t kflags = get_flags(flags, ULOOP_WRITE);
- EV_SET(&ev[nev++], fd->fd, EVFILT_
READ
, kflags, 0, 0, fd);
+ EV_SET(&ev[nev++], fd->fd, EVFILT_
WRITE
, kflags, 0, 0, fd);
}
if (nev && (kevent(poll_fd, ev, nev, NULL, 0, &timeout) == -1))