Commit fef31b03 authored by Linus Torvalds's avatar Linus Torvalds

Don't special-case SIGKILL/SIGSTOP - the blocking masks should

already take care of it.

This fixes kernel threads that _do_ block SIGKILL/STOP.
parent b1ab5049
...@@ -794,8 +794,7 @@ __group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p) ...@@ -794,8 +794,7 @@ __group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
* If the main thread wants the signal, it gets first crack. * If the main thread wants the signal, it gets first crack.
* Probably the least surprising to the average bear. * Probably the least surprising to the average bear.
*/ */
if (p->state < TASK_ZOMBIE && if (wants_signal(sig, p))
(sig_kernel_only(sig) || wants_signal(sig, p)))
t = p; t = p;
else if (thread_group_empty(p)) else if (thread_group_empty(p))
/* /*
......
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