Commit 2b201a9e authored by Oleg Nesterov's avatar Oleg Nesterov Committed by Linus Torvalds

signals: do_signal_stop: kill the SIGNAL_UNKILLABLE check

fae5fa44 changed do_signal_stop() to check
SIGNAL_UNKILLABLE, this wasn't needed.  If signal_group_exit() == F, the
signal sent to SIGNAL_UNKILLABLE task must be already filtered out by the
caller, get_signal_to_deliver().  And if signal_group_exit() == T we are
not going to stop.
Signed-off-by: default avatarOleg Nesterov <oleg@tv-sign.ru>
Acked-by: default avatarRoland McGrath <roland@redhat.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 92413d77
...@@ -1649,8 +1649,7 @@ static int do_signal_stop(int signr) ...@@ -1649,8 +1649,7 @@ static int do_signal_stop(int signr)
} else { } else {
struct task_struct *t; struct task_struct *t;
if (unlikely((sig->flags & (SIGNAL_STOP_DEQUEUED | SIGNAL_UNKILLABLE)) if (!likely(sig->flags & SIGNAL_STOP_DEQUEUED) ||
!= SIGNAL_STOP_DEQUEUED) ||
unlikely(signal_group_exit(sig))) unlikely(signal_group_exit(sig)))
return 0; return 0;
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment