mirror of
https://github.com/darlinghq/darling-libkqueue.git
synced 2024-11-23 03:39:51 +00:00
* Fix incorrect boolean logic in src/linux/read.c
(Credit: marcos69, closes #5)
This commit is contained in:
parent
b013ed1025
commit
fd76168ac6
@ -1,6 +1,9 @@
|
||||
UNRELEASED HEAD
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Fix incorrect boolean logic in src/linux/read.c
|
||||
(Credit: marcos69, closes #5)
|
||||
|
||||
* Fix a build failure on mips64el.
|
||||
(Credit: YunQiang Su, from Debian Bug #754376)
|
||||
|
||||
|
@ -204,7 +204,7 @@ evfilt_read_knote_delete(struct filter *filt, struct knote *kn)
|
||||
if (kn->kev.flags & EV_DISABLE)
|
||||
return (0);
|
||||
|
||||
if ((kn->kn_flags & KNFL_REGULAR_FILE && kn->kdata.kn_eventfd != -1) < 0) {
|
||||
if ((kn->kn_flags & KNFL_REGULAR_FILE) && (kn->kdata.kn_eventfd != -1)) {
|
||||
if (epoll_ctl(kn->kn_epollfd, EPOLL_CTL_DEL, kn->kdata.kn_eventfd, NULL) < 0) {
|
||||
dbg_perror("epoll_ctl(2)");
|
||||
return (-1);
|
||||
|
Loading…
Reference in New Issue
Block a user