--- libaitsched/src/hooks.c 2013/09/02 11:21:22 1.23 +++ libaitsched/src/hooks.c 2013/11/14 21:37:27 1.24 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.23 2013/09/02 11:21:22 misho Exp $ +* $Id: hooks.c,v 1.24 2013/11/14 21:37:27 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -629,9 +629,10 @@ sched_hook_fetch(void *root, void *arg __unused) return NULL; } else if (errno != EINTR) LOGERR; - return NULL; + goto skip_event; } + /* kevent dispatcher */ now.tv_sec = now.tv_nsec = 0; /* Go and catch the cat into pipes ... */ for (i = 0; i < en; i++) { @@ -1003,8 +1004,9 @@ sched_hook_fetch(void *root, void *arg __unused) } else LOGERR; } - } + } /* end of kevent dispatcher */ +skip_event: /* timer update & put in ready queue */ clock_gettime(CLOCK_MONOTONIC, &now);