patch-2.1.91 linux/arch/i386/kernel/process.c
Next file: linux/arch/i386/lib/locks.S
Previous file: linux/arch/i386/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Mar 25 09:20:42 1998
- Orig file:
v2.1.90/linux/arch/i386/kernel/process.c
- Orig date:
Tue Mar 17 22:18:13 1998
diff -u --recursive --new-file v2.1.90/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -171,6 +171,8 @@
asmlinkage int sys_idle(void)
{
+ if (current->pid != 0)
+ return -EPERM;
cpu_idle(NULL);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov