signals: check ->group_stop_count after tracehook_get_signal()
authorOleg Nesterov <oleg@redhat.com>
Wed, 16 Dec 2009 00:47:26 +0000 (16:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 16 Dec 2009 15:20:09 +0000 (07:20 -0800)
commit1be53963b0519bd3681749a9bed8b83aeb005cca
tree0bc6497a8039021f781f1c902f59e6f71f772793
parentad09750b51150ca87531b8790a379214a974c167
signals: check ->group_stop_count after tracehook_get_signal()

Move the call to do_signal_stop() down, after tracehook call.  This makes
->group_stop_count condition visible to tracers before do_signal_stop()
will participate in this group-stop.

Currently the patch has no effect, tracehook_get_signal() always returns 0.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c