From 9bdbd02401334b7d762131a46e64ca2cd24846dc Mon Sep 17 00:00:00 2001 From: Sertonix Date: Thu, 05 Oct 2023 10:09:05 +0000 Subject: [PATCH] loop::dispatch: fix write while read --- ev/+linux/loop.ha | 4 ++-- diff --git a/ev/+linux/loop.ha b/ev/+linux/loop.ha index 86c92e2bec3935d6c392c00be40daf2c79ad426d..caefc12ed1837ac1ac61d48c18a65e3d01a0c689 100644 --- a/ev/+linux/loop.ha +++ b/ev/+linux/loop.ha @@ -154,11 +154,11 @@ continue; }; const pending = file.op; if (ev.events & (rt::EPOLLIN | rt::EPOLLHUP) != 0 - && pending & op::READV != 0) { + && file.op & op::READV != 0) { readv_ready(file, ev); }; if (ev.events & (rt::EPOLLOUT | rt::EPOLLHUP) != 0 - && pending & op::WRITEV != 0) { + && file.op & op::WRITEV != 0) { writev_ready(file, ev); }; switch (pending) { -- 2.48.1