--- libaitsched/src/hooks.c 2011/08/12 11:49:50 1.1.1.1.2.5 +++ libaitsched/src/hooks.c 2011/08/12 12:12:01 1.1.1.1.2.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.1.1.1.2.5 2011/08/12 11:49:50 misho Exp $ +* $Id: hooks.c,v 1.1.1.1.2.6 2011/08/12 12:12:01 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -348,12 +348,11 @@ retry: } break; } - if (kevent(r->root_kq, evt, 1, NULL, 0, &nw) == -1) LOGERR; } - /* timer update */ + /* timer update & put in ready queue */ clock_gettime(CLOCK_MONOTONIC, &nw); now.tv_sec = nw.tv_sec; now.tv_usec = nw.tv_nsec / 1000; @@ -387,4 +386,3 @@ retry: TAILQ_INSERT_TAIL(&r->root_unuse, task, task_node); return task; } -