--- libaitsched/src/tasks.c 2014/04/27 16:20:37 1.24 +++ libaitsched/src/tasks.c 2014/05/21 21:11:29 1.24.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tasks.c,v 1.24 2014/04/27 16:20:37 misho Exp $ +* $Id: tasks.c,v 1.24.2.1 2014/05/21 21:11:29 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -1330,7 +1330,7 @@ schedThread(sched_root_task_t * __restrict root, sched TASK_DATLEN(task) = opt_dlen; pthread_attr_init(&attr); - pthread_attr_setdetachstate(&attr, PTHREAD_DETACHED); + pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); if (ss && (errno = pthread_attr_setstacksize(&attr, ss))) { LOGERR; pthread_attr_destroy(&attr);