diff options
author | Maria Matejka <mq@ucw.cz> | 2021-10-20 23:08:58 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2021-11-22 19:05:43 +0100 |
commit | 6e841b3153565632b6753f6b1fe74850c37f2808 (patch) | |
tree | 2673e3718fec066c90a000c0ad216f62a4de3755 /sysdep/unix/io.c | |
parent | 94eb0858c2b938549d9d1703c872c6149901e7dd (diff) |
Adding a generic cork mechanism for events
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r-- | sysdep/unix/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index c91f2856..dd385c80 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -2234,7 +2234,7 @@ io_loop(void) { pfd[nfds] = (struct pollfd) { .fd = -1 }; /* everything other set to 0 by this */ s = SKIP_BACK(sock, n, n); - if (s->rx_hook) + if (s->rx_hook && !ev_corked(s->cork)) { pfd[nfds].fd = s->fd; pfd[nfds].events |= POLLIN; |