diff options
author | Oleg Nesterov <oleg@redhat.com> | 2009-06-18 23:49:11 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-19 23:46:06 (GMT) |
commit | befca96779b0259ac8fad0183e748a62935c39cb (patch) | |
tree | ab4962e27ce10abc932de4c7a4c1c29fac2988cf /drivers/char | |
parent | e6229bec25be4ba00f31dd26e25721cc96c22262 (diff) | |
download | linux-fsl-qoriq-befca96779b0259ac8fad0183e748a62935c39cb.tar.xz |
ptrace: wait_task_zombie: do not account traced sub-threads
The bug is ancient.
If we trace the sub-thread of our natural child and this sub-thread exits,
we update parent->signal->cxxx fields. But we should not do this until
the whole thread-group exits, otherwise we account this thread (and all
other live threads) twice.
Add the task_detached() check. No need to check thread_group_empty(),
wait_consider_task()->delay_group_leader() already did this.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Roland McGrath <roland@redhat.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Vitaly Mayatskikh <vmayatsk@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions