mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-30 22:41:55 +01:00
MINOR: kqueue: exclusively rely on the kqueue returned status
After commit e852545 ("MEDIUM: polling: centralize polled events processing")
all pollers stopped to explicitly check the FD's polled status, except the
kqueue poller which is constructed a bit differently. It doesn't seem possible
to cause any issue such as missing an event however, but anyway it's better to
definitely get rid of this since the event filter already provides the event
direction.
This commit is contained in:
parent
3c8a89642d
commit
dd437d9a4c
@ -125,12 +125,10 @@ REGPRM2 static void _do_poll(struct poller *p, int exp)
|
||||
fdtab[fd].ev &= FD_POLL_STICKY;
|
||||
|
||||
if (kev[count].filter == EVFILT_READ) {
|
||||
if ((fdtab[fd].state & FD_EV_STATUS_R))
|
||||
fdtab[fd].ev |= FD_POLL_IN;
|
||||
fdtab[fd].ev |= FD_POLL_IN;
|
||||
}
|
||||
else if (kev[count].filter == EVFILT_WRITE) {
|
||||
if ((fdtab[fd].state & FD_EV_STATUS_W))
|
||||
fdtab[fd].ev |= FD_POLL_OUT;
|
||||
fdtab[fd].ev |= FD_POLL_OUT;
|
||||
}
|
||||
|
||||
if (fdtab[fd].ev & (FD_POLL_IN | FD_POLL_HUP | FD_POLL_ERR))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user