diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2008-04-30 03:53:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 11:29:38 -0400 |
commit | 2800d8d19e51414403df8144eaa214bb03400b87 (patch) | |
tree | d5b01302c7109d7ffdc140ce8d6e31cebcdb233a /fs | |
parent | 376e1d2531860358c8a79fecf5f4f42994d03c4d (diff) |
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 'fs')
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -798,7 +798,7 @@ static int de_thread(struct task_struct *tsk) | |||
798 | if (!thread_group_leader(tsk)) { | 798 | if (!thread_group_leader(tsk)) { |
799 | leader = tsk->group_leader; | 799 | leader = tsk->group_leader; |
800 | 800 | ||
801 | sig->notify_count = -1; | 801 | sig->notify_count = -1; /* for exit_notify() */ |
802 | for (;;) { | 802 | for (;;) { |
803 | write_lock_irq(&tasklist_lock); | 803 | write_lock_irq(&tasklist_lock); |
804 | if (likely(leader->exit_state)) | 804 | if (likely(leader->exit_state)) |