[Devel] Re: Processes with multiple pid_t values

Eric W. Biederman ebiederm at xmission.com
Tue Dec 12 13:34:20 PST 2006


"Serge E. Hallyn" <serue at us.ibm.com> writes:

> Sigh, here we go back again to the question of what to do in the case
> of a lightweight container which doesn't have a /sbin/init.  Let's say
> I do
> 	spawn_container(fork_and_exit(sleep 30m));
>
> so pid 1 forks, pid 2 sleeps 30 minutes, but pid 1 exits right after
> the fork.  What do we do?  Create an idle pid 1?  Tack a struct pid
> to the parent namespaces' pid=1 making it pid=1 for the child namespace?

I was thinking whoever called spawn container would be pid 1.  But I agree
that is only a partial solution.  It definitely makes sense to worry
about this question later when all of the rest of the details for
system containers are sorted out.

Eric
_______________________________________________
Containers mailing list
Containers at lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers




More information about the Devel mailing list