--- libaitsched/src/hooks.c 2014/01/28 12:57:52 1.24.4.7 +++ libaitsched/src/hooks.c 2014/01/28 13:01:58 1.24.4.8 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.24.4.7 2014/01/28 12:57:52 misho Exp $ +* $Id: hooks.c,v 1.24.4.8 2014/01/28 13:01:58 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -1142,13 +1142,12 @@ sched_hook_fetch(void *root, void *arg __unused) } #else /* end of kevent dispatcher */ for (i = 0; i < r->root_kq; i++) { - if (FD_ISSET(i, &r->root_fds[0])) { + if (FD_ISSET(i, &rfd) || FD_ISSET(i, &xfd)) { flg = 0; TAILQ_FOREACH_SAFE(task, &r->root_read, task_node, tmp) { if (TASK_FD(task) != i) continue; else { - printf("Suck the milk %d !!!\n", i); flg++; TASK_RET(task) ^= TASK_RET(task); TASK_FLAG(task) ^= TASK_FLAG(task); @@ -1197,13 +1196,12 @@ sched_hook_fetch(void *root, void *arg __unused) FD_CLR(i, &r->root_fds[0]); } - if (FD_ISSET(i, &r->root_fds[1])) { + if (FD_ISSET(i, &wfd)) { flg = 0; TAILQ_FOREACH_SAFE(task, &r->root_write, task_node, tmp) { if (TASK_FD(task) != i) continue; else { - printf("HIT the pig %d !!!\n", i); flg++; TASK_RET(task) ^= TASK_RET(task); TASK_FLAG(task) ^= TASK_FLAG(task);