Hi All,
Does this way both pid1 and pid2 run in the same network namespace? Or please
suggest any other way
main()
{
int flags= CLONE_NEWNS| CLONE_NEWNET;
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)
}
do_subtract()
{
}
We want to run 2 different processes multiply and subtract in the same network
namespace as two different processes.
Thanks
Mahesh
________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk
Collect, index and harness all the fast moving IT data generated by your
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights.
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel