--- libaitsched/src/aitsched.c 2023/02/23 15:31:17 1.29.8.2 +++ libaitsched/src/aitsched.c 2023/02/23 15:39:07 1.30.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.29.8.2 2023/02/23 15:31:17 misho Exp $ +* $Id: aitsched.c,v 1.30.2.2 2023/02/23 15:39:07 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -389,7 +389,7 @@ schedEnd(sched_root_task_t ** __restrict root) if ((*root)->root_sigthr) { pthread_cancel((*root)->root_sigthr); - (*root)->root_sigthr ^= (*root)->root_sigthr; + (*root)->root_sigthr = NULL; } #endif @@ -1152,7 +1152,7 @@ schedSignalDispatch(sched_root_task_t * __restrict roo if (!on) { pthread_cancel(root->root_sigthr); - root->root_sigthr ^= root->root_sigthr; + root->root_sigthr = NULL; return 0; }