kernel_optimize_test/arch/mips
Cedric Le Goater 9ec52099e4 [PATCH] replace cad_pid by a struct pid
There are a few places in the kernel where the init task is signaled.  The
ctrl+alt+del sequence is one them.  It kills a task, usually init, using a
cached pid (cad_pid).

This patch replaces the pid_t by a struct pid to avoid pid wrap around
problem.  The struct pid is initialized at boot time in init() and can be
modified through systctl with

	/proc/sys/kernel/cad_pid

[ I haven't found any distro using it ? ]

It also introduces a small helper routine kill_cad_pid() which is used
where it seemed ok to use cad_pid instead of pid 1.

[akpm@osdl.org: cleanups, build fix]
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-02 07:57:25 -07:00
..
arc
au1000
basler/excite
boot
cobalt
configs
ddb5xxx
dec
emma2rh
gt64120
ite-boards
jazz
jmr3927
kernel [PATCH] provide kernel_execve on all architectures 2006-10-02 07:57:23 -07:00
lasat
lib
lib-32
lib-64
math-emu
mips-boards
mm
momentum
oprofile
pci
philips/pnx8550
pmc-sierra
qemu
sgi-ip22 [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
sgi-ip27
sgi-ip32 [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
sibyte
sni
tx4927
tx4938
vr41xx
defconfig
Kconfig
Kconfig.debug
Makefile