--- libaitsched/src/hooks.c 2014/01/28 10:37:19 1.24.4.5 +++ libaitsched/src/hooks.c 2014/01/28 12:14:20 1.24.4.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: hooks.c,v 1.24.4.5 2014/01/28 10:37:19 misho Exp $ +* $Id: hooks.c,v 1.24.4.6 2014/01/28 12:14:20 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -529,13 +529,6 @@ sched_hook_proc(void *task, void *arg __unused) return NULL; } -#ifdef KQ_DISABLE -static void -_sched_sigHandler(int sig) -{ -} -#endif /* KQ_DISABLE */ - /* * sched_hook_signal() - Default SIGNAL hook * @@ -546,8 +539,8 @@ _sched_sigHandler(int sig) void * sched_hook_signal(void *task, void *arg __unused) { - sched_task_t *t = task; #ifndef KQ_DISABLE + sched_task_t *t = task; struct kevent chg[1]; struct timespec timeout = { 0, 0 }; @@ -570,6 +563,8 @@ sched_hook_signal(void *task, void *arg __unused) return (void*) -1; } #else +#if 0 + sched_task_t *t = task; struct sigaction sa; memset(&sa, 0, sizeof sa); @@ -584,6 +579,7 @@ sched_hook_signal(void *task, void *arg __unused) LOGERR; return (void*) -1; } +#endif /* 0 */ #endif return NULL; }