summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-04-30 09:53:12 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 17:29:38 +0200
commit2800d8d19e51414403df8144eaa214bb03400b87 (patch)
treed5b01302c7109d7ffdc140ce8d6e31cebcdb233a /kernel
parentreparent_thread: use same_thread_group() (diff)
downloadlinux-2800d8d19e51414403df8144eaa214bb03400b87.tar.xz
linux-2800d8d19e51414403df8144eaa214bb03400b87.zip
document de_thread() with exit_notify() connection
Add a couple of small comments, it is not easy to see what this code does. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Cc: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 413c81ec858e..879ed6e1c883 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -877,6 +877,7 @@ static void exit_notify(struct task_struct *tsk, int group_dead)
state = EXIT_DEAD;
tsk->exit_state = state;
+ /* mt-exec, de_thread() is waiting for us */
if (thread_group_leader(tsk) &&
tsk->signal->notify_count < 0 &&
tsk->signal->group_exit_task)