exit: change zap_other_threads() to count sub-threads
authorOleg Nesterov <[email protected]>
Wed, 26 May 2010 21:43:11 +0000 (14:43 -0700)
committerLinus Torvalds <[email protected]>
Thu, 27 May 2010 16:12:46 +0000 (09:12 -0700)
commit09faef11df8c559a23e2405d123cb2683733a79a
treedb8e4c94677be8afebde938c2e6b7ba07b6b6db0
parent9c3391684415c9dca239130d9e433a60a4edf04b
exit: change zap_other_threads() to count sub-threads

Change zap_other_threads() to return the number of other sub-threads found
on ->thread_group list.

Other changes are cosmetic:

- change the code to use while_each_thread() helper

- remove the obsolete comment about SIGKILL/SIGSTOP

Signed-off-by: Oleg Nesterov <[email protected]>
Acked-by: Roland McGrath <[email protected]>
Cc: Veaceslav Falico <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/sched.h
kernel/signal.c