patch-2.3.11 linux/drivers/char/sysrq.c

Next file: linux/drivers/char/vt.c
Previous file: linux/drivers/char/ppdev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.10/linux/drivers/char/sysrq.c linux/drivers/char/sysrq.c
@@ -40,7 +40,7 @@
 	struct task_struct *p;
 
 	for_each_task(p) {
-		if (p->pid && p->mm != &init_mm) {	    /* Not swapper nor kernel thread */
+		if (p->mm) {				    /* Not swapper nor kernel thread */
 			if (p->pid == 1 && even_init)	    /* Ugly hack to kill init */
 				p->pid = 0x8000;
 			force_sig(sig, p);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)