aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/sysrq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/sysrq.c')
-rw-r--r--drivers/char/sysrq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c
index ee3ca8f1768e..0ad6cb081db4 100644
--- a/drivers/char/sysrq.c
+++ b/drivers/char/sysrq.c
@@ -208,7 +208,7 @@ static void send_sig_all(int sig)
208 struct task_struct *p; 208 struct task_struct *p;
209 209
210 for_each_process(p) { 210 for_each_process(p) {
211 if (p->mm && p->pid != 1) 211 if (p->mm && !is_init(p))
212 /* Not swapper, init nor kernel thread */ 212 /* Not swapper, init nor kernel thread */
213 force_sig(sig, p); 213 force_sig(sig, p);
214 } 214 }