[lxc-devel] 回复 :Re: How to change to lxc internal PID to system wide PID

yinxb at neusoft.com yinxb at neusoft.com
Mon Dec 12 07:50:31 UTC 2011


Hi Yanhai

   Thanks for your kind reply.
   I will try your advise,but it seems I need to change my flatform 
mechanism.
   It is not a easy work.
   Anyway ,thanks.

----- 原邮件 -----
从: Zhu Yanhai <zhu.yanhai at gmail.com>
日期: 星期一, 十二月 12日, 2011 下午1:14
主题: Re: [lxc-devel] How to change to lxc internal PID to system wide 
PID

> 2011/12/12  <yinxb at neusoft.com>:
> > Hi all
> >
> > ?These days I encouter a problem.
> > ?When I use the lxc to running my app,the getpid() system call
> > returns 2.But in my platform,
> > ?I need the system wide PID instead for some purpose,such as
> > integrade with native app(not running in lxc).
> > ?(I want to integrade the lxc app in my platform to do 
isolation,and
> > use the dbus for IPC)
> > ?So how to solve this conflict?Can anyone give me a hint?
> >
> > ?Thanks for your time.
> >
> > Cheers
> > Xiaobiao
> > -----------------------------------------------------------------
> ----------------------------------
> > Confidentiality Notice: The information contained in this e-mail 
> and any accompanying attachment(s)
> > is intended only for the use of the intended recipient and may 
> be confidential and/or privileged of
> > Neusoft Corporation, its subsidiaries and/or its affiliates. If 
> any reader of this communication is
> > not the intended recipient, unauthorized use, forwarding, 
> printing, ?storing, disclosure or copying
> > is strictly prohibited, and may be unlawful.If you have received 
> this communication in error,please
> > immediately notify the sender by return e-mail, and delete the 
> original message and all copies from
> > your system. Thank you.
> > -----------------------------------------------------------------
> ----------------------------------
> >
> >
> > -----------------------------------------------------------------
> -------------
> > Learn Windows Azure Live! ?Tuesday, Dec 13, 2011
> > Microsoft is holding a special Learn Windows Azure training 
> event for
> > developers. It will provide a great way to learn Windows Azure 
> and what it
> > provides. You can attend the event by watching it streamed LIVE 
> online.> Learn more at http://p.sf.net/sfu/ms-windowsazure
> > _______________________________________________
> > Lxc-devel mailing list
> > Lxc-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/lxc-devel
> 
> Hi,
> IMHO you are not able to do this (correct me if I'm wrong), as 
> this is
> exactly what the namespace means.
> I think you may setup a common network connection for this, to
> exchange pid map information with some 'pid translation' daemon on
> host.
> 
> Thanks,
> Zhu Yanhai
> 
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------


More information about the lxc-devel mailing list