• Eric W. Biederman's avatar
    pidns: make killed children autoreap · 00c10bc1
    Eric W. Biederman authored
    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.
    
    [akpm@linux-foundation.org: checkpatch fixes]
    Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Pavel Emelyanov <xemul@parallels.com>
    Cc: Cyrill Gorcunov <gorcunov@openvz.org>
    Cc: Louis Rilling <louis.rilling@kerlabs.com>
    Cc: Mike Galbraith <efault@gmx.de>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    00c10bc1
pid_namespace.c 6.09 KB