diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-06 03:56:37 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-06 03:56:37 +0300 |
commit | aa5276dcd6d6de05f45a5c83d32d711ab7db6bcf (patch) | |
tree | a036c882961314e1eeeef845b3cdf3bd1c70233b /uloop.c | |
parent | 5aed3c2d2ea7c3aadf73b4ee1fd342421dbb6056 (diff) |
uloop: fix the write flag for mac os x
Diffstat (limited to 'uloop.c')
-rw-r--r-- | uloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |