--- libaitsched/src/hooks.c 2022/11/29 20:15:18 1.38 +++ libaitsched/src/hooks.c 2022/12/20 22:40:32 1.39 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.38 2022/11/29 20:15:18 misho Exp $ +* $Id: hooks.c,v 1.39 2022/12/20 22:40:32 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -213,7 +213,7 @@ sched_hook_cancel(void *task, void *arg __unused) struct kevent chg[1]; struct timespec timeout = { 0, 0 }; #elif SUP_ENABLE == EP_SUPPORT - struct epoll_event ee = { .events = 0, .data.fd = 0 }; + struct epoll_event ee = { .events = 0, .data.u64 = 0l }; #else register int i; #endif @@ -542,7 +542,7 @@ sched_hook_read(void *task, void *arg) struct kevent chg[1]; struct timespec timeout = { 0, 0 }; #elif SUP_ENABLE == EP_SUPPORT - struct epoll_event ee; + struct epoll_event ee = { 0 }; int flg = 0; #endif @@ -631,7 +631,7 @@ sched_hook_write(void *task, void *arg) struct kevent chg[1]; struct timespec timeout = { 0, 0 }; #elif SUP_ENABLE == EP_SUPPORT - struct epoll_event ee; + struct epoll_event ee = { 0 }; int flg = 0; #endif @@ -1218,6 +1218,7 @@ fetch_hook_epoll_proceed(int en, struct epoll_event *r } } + ops = EPOLL_CTL_DEL; if (rflg > 1 || wflg > 1) ops = EPOLL_CTL_MOD;