--- libaitsched/src/hooks.c 2013/08/22 15:28:04 1.20 +++ libaitsched/src/hooks.c 2013/08/26 08:20:55 1.21 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.20 2013/08/22 15:28:04 misho Exp $ +* $Id: hooks.c,v 1.21 2013/08/26 08:20:55 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -1158,8 +1158,8 @@ sched_hook_rtc(void *task, void *arg __unused) } else TASK_FLAG(t) = (u_long) tmr; - if (!(sigt = schedSignal(TASK_ROOT(t), TASK_FUNC(t), TASK_ARG(t), evt.sigev_signo, - TASK_DATA(t), (size_t) tmr))) { + if (!(sigt = schedSignal(TASK_ROOT(t), _sched_rtcWrapper, TASK_ARG(t), evt.sigev_signo, + t, (size_t) tmr))) { if (TASK_ROOT(t)->root_hooks.hook_exec.exception) TASK_ROOT(t)->root_hooks.hook_exec.exception(TASK_ROOT(t), NULL); else