event_kqueue.c->kevent_fflush should use hooked API __sys_kevent

This commit is contained in:
shuxin   zheng 2019-08-11 11:10:43 +08:00
parent 03896a6a12
commit 574800f456

View File

@ -66,7 +66,7 @@ static int kqueue_fflush(EVENT_KQUEUE *ek)
ts.tv_sec = 0;
ts.tv_nsec = 0;
if (kevent(ek->kqfd, ek->changes, ek->nchanges, NULL, 0, &ts) == -1) {
if (__sys_kevent(ek->kqfd, ek->changes, ek->nchanges, NULL, 0, &ts) == -1) {
msg_error("%s(%d): kevent error %s, kqfd=%d",
__FUNCTION__, __LINE__, last_serror(), ek->kqfd);
return -1;