mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-31 07:37:54 +00:00
BUG/MAJOR: kqueue: Don't reset the changes number by accident.
In _update_fd(), if the fd wasn't polled, and we don't want it to be polled, we just returned 0, however, we should return changes instead, or all previous changes will be lost. This should be backported to 1.8.
This commit is contained in:
parent
ab813a4b05
commit
5ab33944cd
@ -44,7 +44,7 @@ static int _update_fd(int fd, int start)
|
||||
if (!(fdtab[fd].thread_mask & tid_bit) || !(en & FD_EV_POLLED_RW)) {
|
||||
if (!(polled_mask[fd] & tid_bit)) {
|
||||
/* fd was not watched, it's still not */
|
||||
return 0;
|
||||
return changes;
|
||||
}
|
||||
/* fd totally removed from poll list */
|
||||
EV_SET(&kev[changes++], fd, EVFILT_READ, EV_DELETE, 0, 0, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user