--- libaitsched/src/aitsched.c 2023/02/23 15:36:41 1.30.2.1 +++ libaitsched/src/aitsched.c 2023/02/23 15:41:45 1.30.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitsched.c,v 1.30.2.1 2023/02/23 15:36:41 misho Exp $ +* $Id: aitsched.c,v 1.30.2.3 2023/02/23 15:41:45 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -389,7 +389,11 @@ schedEnd(sched_root_task_t ** __restrict root) if ((*root)->root_sigthr) { pthread_cancel((*root)->root_sigthr); - (*root)->root_sigthr ^= (*root)->root_sigthr; +#ifdef __linux__ + (*root)->root_sigthr = 0L; +#else + (*root)->root_sigthr = NULL; +#endif } #endif @@ -1152,7 +1156,11 @@ schedSignalDispatch(sched_root_task_t * __restrict roo if (!on) { pthread_cancel(root->root_sigthr); - root->root_sigthr ^= root->root_sigthr; +#ifdef __linux__ + root->root_sigthr = 0L; +#else + root->root_sigthr = NULL; +#endif return 0; }