]> git.neil.brown.name Git - history.git/commit
[PATCH] exit-fix-2.5.38-E3
authorIngo Molnar <mingo@elte.hu>
Wed, 25 Sep 2002 05:50:59 +0000 (22:50 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 25 Sep 2002 05:50:59 +0000 (22:50 -0700)
commit5dd6a6e5cdad7a7018accce3ccd888dea2667405
treed5fca6e818356776e781b35e0e655f72278f5914
parent2684cd69c942e9b63d094059992e46a988fdb7f1
[PATCH] exit-fix-2.5.38-E3

This fixes a number of bugs in the thread-release code:

 - notify parents only if the group leader is a zombie,
   and if it's not a detached thread.

 - do not reparent children to zombie tasks.

 - introduce the TASK_DEAD state for tasks, to serialize the task-release
   path. (to some it might be confusing that tasks are zombies first, then
   dead :-)

 - simplify tasklist_lock usage in release_task().

the effect of the above bugs ranged from unkillable hung zombies to kernel
crashes. None of those happens with the patch applied.
include/linux/sched.h
kernel/exit.c