On 02/16/2011 01:25 AM, Maheswara Reddy C - ERS, HCL Tech wrote:
> Hi,
> 
> Could someone help me out,
> 
> I want to run the two process on same name space, shall it possible 
> using the clone()

You call clone with the CLONE_NEW* flags to create a new namespace.  And
then you just fork() normally (without those flags) to create additional
processes in that same namespace.

It's a bit like chroot: you do something extra to get in it, and then
children inherit that environment by default.

Rob

P.S. Fix your hilarious legalese .sig.

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to