pidns: make killed children autoreap
authorEric W. Biederman <[email protected]>
Thu, 31 May 2012 23:26:40 +0000 (16:26 -0700)
committerLinus Torvalds <[email protected]>
Fri, 1 Jun 2012 00:49:32 +0000 (17:49 -0700)
commit00c10bc13cdb58447d6bb2a003afad7bd60f5a5f
tree64058d4c643706035e2327adecd8be18b852dfb6
parent3208450488ae724196f1efffc457e4265957c04e
pidns: make killed children autoreap

Force SIGCHLD handling to SIG_IGN so that signals are not generated and so
that the children autoreap.  This increases the parallelize and in general
the speed of network namespace shutdown.

Note self reaping childrean can exist past zap_pid_ns_processess but they
will all be reaped before we allow the pid namespace init task with pid ==
1 to be reaped.

[[email protected]: checkpatch fixes]
Signed-off-by: Eric W. Biederman <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Cc: Cyrill Gorcunov <[email protected]>
Cc: Louis Rilling <[email protected]>
Cc: Mike Galbraith <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/pid_namespace.c