]> git.baikalelectronics.ru Git - kernel.git/commit
pid: Handle the exit of a multi-threaded init.
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Mar 2013 09:27:11 +0000 (02:27 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 26 Mar 2013 10:41:23 +0000 (03:41 -0700)
commit30fca9d1dfbab99babe2e9da484ee5c4695e659e
treeac5fa98b0281b5c8db1ac5859d15ac5c2b22e5f4
parent569201b1656f8def6d38dcebd26eaef2d23fc772
pid: Handle the exit of a multi-threaded init.

When a multi-threaded init exits and the initial thread is not the
last thread to exit the initial thread hangs around as a zombie
until the last thread exits.  In that case zap_pid_ns_processes
needs to wait until there are only 2 hashed pids in the pid
namespace not one.

v2. Replace thread_pid_vnr(me) == 1 with the test thread_group_leader(me)
    as suggested by Oleg.

Cc: stable@vger.kernel.org
Cc: Oleg Nesterov <oleg@redhat.com>
Reported-by: Caj Larsson <caj@omnicloud.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/pid_namespace.c