OpenVZ Forum


Home » Mailing lists » Devel » Processes with multiple pid_t values
Re: Processes with multiple pid_t values [message #16993 is a reply to message #16986] Tue, 12 December 2006 21:34 Go to previous messageGo to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
"Serge E. Hallyn" <serue@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@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: vzmigrate filesystem rsync correction
Next Topic: [PATCH 0/5] fixing errors handling during pci_driver resume stage
Goto Forum:
  


Current Time: Wed Jul 23 04:40:20 GMT 2025

Total time taken to generate the page: 0.13618 seconds