--- libaitsched/src/tasks.c 2014/05/21 21:11:29 1.24.2.1 +++ libaitsched/src/tasks.c 2014/05/21 21:55:11 1.24.2.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tasks.c,v 1.24.2.1 2014/05/21 21:11:29 misho Exp $ +* $Id: tasks.c,v 1.24.2.2 2014/05/21 21:55:11 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -1342,11 +1342,7 @@ schedThread(sched_root_task_t * __restrict root, sched return sched_unuseTask(task); } else TASK_FLAG(task) = ss; - if ((errno = pthread_attr_setguardsize(&attr, ss))) { - LOGERR; - pthread_attr_destroy(&attr); - return sched_unuseTask(task); - } + #ifdef SCHED_RR pthread_attr_setschedpolicy(&attr, SCHED_RR); #else