From: Felix Fietkau Date: Sun, 6 Feb 2011 00:56:37 +0000 (+0100) Subject: uloop: fix the write flag for mac os x X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aa5276dcd6d6de05f45a5c83d32d711ab7db6bcf;p=oweals%2Flibubox.git uloop: fix the write flag for mac os x --- diff --git a/uloop.c b/uloop.c index a263a01..a8cb506 100644 --- 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))