From: Eric W. Biederman Date: Tue, 26 Mar 2013 09:27:11 +0000 (-0700) Subject: pid: Handle the exit of a multi-threaded init. X-Git-Tag: v3.9-rc5~21^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751c644b95bb48aaa8825f0c66abbcc184d92051;p=pandora-kernel.git 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 Reported-by: Caj Larsson Signed-off-by: "Eric W. Biederman" --- Reading git-diff-tree failed