aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorOleg Nesterov <[email protected]>2009-06-18 16:49:11 -0700
committerLinus Torvalds <[email protected]>2009-06-19 16:46:06 -0700
commitbefca96779b0259ac8fad0183e748a62935c39cb (patch)
treeab4962e27ce10abc932de4c7a4c1c29fac2988cf /net/lapb/lapb_in.c
parente6229bec25be4ba00f31dd26e25721cc96c22262 (diff)
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 <[email protected]> Cc: Peter Zijlstra <[email protected]> Acked-by: Roland McGrath <[email protected]> Cc: Stanislaw Gruszka <[email protected]> Cc: Vitaly Mayatskikh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions