diff --git a/sched/Kconfig b/sched/Kconfig index 931e233864..f7fe1efe81 100644 --- a/sched/Kconfig +++ b/sched/Kconfig @@ -616,18 +616,6 @@ config SCHED_WAITPID compliant) and will enable the waitid() and wait() interfaces as well. -config SCHED_EXIT_KILL_CHILDREN - bool "Enable kill all children when exit" - default n - depends on SCHED_HAVE_PARENT && SCHED_CHILD_STATUS - ---help--- - When a task exits, all of its child threads will be killed. - - Caution: This selection should not be used unless you are certain - of what you are doing. Uninformed of this option can often lead to - memory leaks since, for example, memory allocations held by threads - are not automatically freed! - config SCHED_USER_IDENTITY bool "Support per-task User Identity" default n diff --git a/sched/task/exit.c b/sched/task/exit.c index fed287abfa..102ddaa12d 100644 --- a/sched/task/exit.c +++ b/sched/task/exit.c @@ -78,7 +78,7 @@ void exit(int status) status &= 0xff; -#ifdef CONFIG_SCHED_EXIT_KILL_CHILDREN +#ifdef HAVE_GROUP_MEMBERS /* Kill all of the children of the group, preserving only this thread. * exit() is normally called from the main thread of the task. pthreads * exit through a different mechanism.