--- libaitsched/src/aitsched.c 2012/07/24 14:06:11 1.11 +++ libaitsched/src/aitsched.c 2012/07/30 00:20:27 1.11.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.11 2012/07/24 14:06:11 misho Exp $ +* $Id: aitsched.c,v 1.11.2.1 2012/07/30 00:20:27 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -595,19 +595,19 @@ schedRun(sched_root_task_t *root, volatile intptr_t * root->root_hooks.hook_exec.condition && root->root_hooks.hook_exec.condition(root, (void*) killState)) { if ((task = root->root_hooks.hook_exec.fetch(root, NULL))) - schedCall(task); + root->root_ret = schedCall(task); } else /* trigger scheduler loop */ while (!*killState && root && root->root_hooks.hook_exec.fetch) { if ((task = root->root_hooks.hook_exec.fetch(root, NULL))) - schedCall(task); + root->root_ret = schedCall(task); } } else /* infinite scheduler loop */ while (root && root->root_hooks.hook_exec.fetch) if ((task = root->root_hooks.hook_exec.fetch(root, NULL))) - schedCall(task); + root->root_ret = schedCall(task); return 0; }