Re: [RFC][PATCH 0/3] fork: Add the ability to create tasks withgiven pids
From: Oleg Nesterov
Date: Thu Nov 17 2011 - 11:07:33 EST
On 11/17, Pavel Emelyanov wrote:
>
> On 11/17/2011 07:49 PM, Oleg Nesterov wrote:
> >
> > But. Speaking of API, it differs a bit compared to the previous version...
> >
> >> The API will be used like in the code below
> >>
> >> /* restore new pid namespace with an init in it */
> >> pid = clone(CLONE_NEWPID);
> >
> > Yes, CLONE_NEWPID | CLONE_CHILD_USEPIDS is not possible.
>
> It should be.
Yes, I was wrong, sorry. I misread the ->child_reaper == NULL in 3/3.
We simply ignore child_tidptr[0] in this case. This should work.
Oleg.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/