kernel_optimize_test/init
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
..
calibrate.c [PATCH] Platform SMIs and their interferance with tsc based delay calibration 2005-06-23 09:45:08 -07:00
do_mounts_initrd.c [PATCH] introduce kernel_execve 2006-10-02 07:57:23 -07:00
do_mounts_md.c [PATCH] devfs: Remove devfs from the init code 2006-06-26 12:25:05 -07:00
do_mounts_rd.c [PATCH] devfs: Remove devfs from the init code 2006-06-26 12:25:05 -07:00
do_mounts.c [PATCH] BLOCK: Make it possible to disable the block layer [try #6] 2006-09-30 20:52:31 +02:00
do_mounts.h [PATCH] devfs: Remove the devfs_fs_kernel.h file from the tree 2006-06-26 12:25:08 -07:00
initramfs.c [PATCH] initramfs overwrite fix 2006-06-26 09:58:40 -07:00
Kconfig [PATCH] IPC namespace core 2006-10-02 07:57:22 -07:00
main.c [PATCH] replace cad_pid by a struct pid 2006-10-02 07:57:25 -07:00
Makefile [PATCH] devfs: Remove devfs from the init code 2006-06-26 12:25:05 -07:00
version.c [PATCH] namespaces: utsname: implement utsname namespaces 2006-10-02 07:57:21 -07:00