Messages in this thread | | | Date | Thu, 17 Nov 2011 17:02:50 +0100 | From | Oleg Nesterov <> | Subject | Re: [RFC][PATCH 0/3] fork: Add the ability to create tasks with given pids |
| |
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.
| |