]> git.baikalelectronics.ru Git - kernel.git/commit
signals: do_group_exit(): use signal_group_exit() more consistently
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 30 Apr 2008 07:52:36 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:33 +0000 (08:29 -0700)
commit7a2018a7a6e9fb47372b5f6d78fa3acc9df8000f
treed3c0d7ad6e3d619345acf7130f053514177bf5c7
parentc251d9cf7ecea4d477c644038087a6b417d44a9f
signals: do_group_exit(): use signal_group_exit() more consistently

do_group_exit() checks SIGNAL_GROUP_EXIT to avoid taking sighand->siglock.
Since ca03b6a6f9284a07e64af66a5aa8ef01dcc8e9b1 exec() doesn't set this
flag, we should use signal_group_exit().

This is not needed for correctness, but can speedup the multithreaded exec
and makes the code more consistent.

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>
kernel/exit.c