On 02/22/2011 12:47 PM, Maheswara Reddy C - ERS, HCL Tech wrote:
> Hi,
> Shall I program this way to create 10 namespaces, with each namespace run 2
> different processes or any better way.
>
> #include
> #include
> #include
>
> int main(int argc, char *argv[])
> {
>
> for(i=0;i<10;i++)
>
Hi,
Shall I program this way to create 10 namespaces, with each namespace run 2
different processes or any better way.
#include
#include
#include
int main(int argc, char *argv[])
{
for(i=0;i<10;i++)
{
pid_t pid1[10],pid2[10];
int flag1= CLONE_NEWNS|CLONE_NETNET, flag2=0;