[lxc-devel] do pid1 and pid2 run in the same network namespace

Maheswara Reddy C - ERS, HCL Tech maheswarareddyc at hcl.com
Tue Feb 22 06:41:38 UTC 2011

Hi All,

Does this way both pid1 and pid2 run in the same network namespace? Or please suggest any other way




  pid1 = clone(do_multiply, stack, flags ,&clone_arg)


do_ multiply ()


 int flags=0;  // mean run in the same namespace

 pid2 = clone(do_subtract, stack, flags ,&clone_arg)





We want to run 2 different processes multiply and subtract in the same network namespace as two different processes.




The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20110222/1074f89b/attachment.html>

More information about the lxc-devel mailing list