Messages in this thread | | | Date | Sun, 24 Mar 2013 14:20:47 +0100 | From | Oleg Nesterov <> | Subject | Re: Zombie stuck in zap_pid_ns_processes() |
| |
On 03/24, Eric W. Biederman wrote: > > --- a/kernel/pid_namespace.c > +++ b/kernel/pid_namespace.c > @@ -181,6 +181,7 @@ void zap_pid_ns_processes(struct pid_namespace *pid_ns) > int nr; > int rc; > struct task_struct *task, *me = current; > + int init_pids = task_pid_vnr(me) == 1 ? 1 : 2; ^^^^^^^^^^^^^^^^^^^^^
Ah, mt-init.
perhaps thread_group_leader(me) would be more clean/simple, but I won't insist of course.
Oleg.
| |