]> err.no Git - linux-2.6/commit
handle_stop_signal: unify partial/full stop handling
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 30 Apr 2008 07:52:46 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:34 +0000 (08:29 -0700)
commitfc321d2e60d6f4eee17206612d0b50519f526daf
tree79dd03d347ccee2f5a538823f7434dfd40e302be
parent6ca25b551309eb1b1b41f83414a92f7472e0b23d
handle_stop_signal: unify partial/full stop handling

Now that handle_stop_signal() doesn't drop ->siglock, we can't see both
->group_stop_count && SIGNAL_STOP_STOPPED.  Merge two "if" branches.

As Roland pointed out, we never actually needed 2 do_notify_parent_cldstop()
calls.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c