aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/signal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 8214ffad54bc..98923882ba57 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1835,11 +1835,9 @@ relock:
1835 continue; 1835 continue;
1836 1836
1837 /* 1837 /*
1838 * Init of a pid space gets no signals it doesn't want from 1838 * Global init gets no signals it doesn't want.
1839 * within that pid space. It can of course get signals from
1840 * its parent pid space.
1841 */ 1839 */
1842 if (current == task_child_reaper(current)) 1840 if (is_global_init(current))
1843 continue; 1841 continue;
1844 1842
1845 if (sig_kernel_stop(signr)) { 1843 if (sig_kernel_stop(signr)) {