]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] add child reaper to pid_namespace
authorSukadev Bhattiprolu <sukadev@us.ibm.com>
Fri, 8 Dec 2006 10:38:01 +0000 (02:38 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 8 Dec 2006 16:28:52 +0000 (08:28 -0800)
commita48c431a23cd88348b1865bd617b20938162adda
treee504da826174c2804d8c680828800aa680090686
parent0ca56a941679eb06920744a57a05ed19e68fd8bd
[PATCH] add child reaper to pid_namespace

Add a per pid_namespace child-reaper.  This is needed so processes are reaped
within the same pid space and do not spill over to the parent pid space.  Its
also needed so containers preserve existing semantic that pid == 1 would reap
orphaned children.

This is based on Eric Biederman's patch: http://lkml.org/lkml/2006/2/6/285

Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
Cc: Kirill Korotaev <dev@openvz.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Herbert Poetzl <herbert@13thfloor.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/exec.c
include/linux/pid.h
include/linux/pid_namespace.h
include/linux/sched.h
init/main.c
kernel/exit.c
kernel/pid.c
kernel/signal.c