summaryrefslogtreecommitdiffstats
path: root/kernel/posix-cpu-timers.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2010-05-26 14:43:12 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2010-05-27 09:12:46 -0700
commit4a5999429739844367d0f77a65efdd7db8202779 (patch)
treefff1158fa43466b30294a7db2c4629ca14973770 /kernel/posix-cpu-timers.c
parentd344193a05da89c97e965da2c5cbf687d7385eae (diff)
downloadlinux-4a5999429739844367d0f77a65efdd7db8202779.tar.gz
linux-4a5999429739844367d0f77a65efdd7db8202779.tar.bz2
linux-4a5999429739844367d0f77a65efdd7db8202779.zip
exit: avoid sig->count in __exit_signal() to detect the group-dead case
Change __exit_signal() to check thread_group_leader() instead of atomic_dec_and_test(&sig->count). This must be equivalent, the group leader must be released only after all other threads have exited and passed __exit_signal(). Henceforth sig->count is not actually used, except in fs/proc for get_nr_threads/etc. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Roland McGrath <roland@redhat.com> Cc: Veaceslav Falico <vfalico@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/posix-cpu-timers.c')
0 files changed, 0 insertions, 0 deletions