: lxc-devel@lists.sourceforge.net
Subject: Re: [lxc-devel] do pid1 and pid2 run in the same network namespace
On 02/22/2011 12:22 PM, Maheswara Reddy C - ERS, HCL Tech wrote:
>> Then it is quite easy. You just have to fork ten times the routine in the
>> program I gave you in the pr
.lezc...@free.fr]
> Sent: Tuesday, February 22, 2011 5:26 PM
> To: Maheswara Reddy C - ERS, HCL Tech
> Cc: lxc-devel@lists.sourceforge.net
> Subject: Re: [lxc-devel] do pid1 and pid2 run in the same network namespace
>
> On 02/22/2011 12:22 PM, Maheswara Reddy C - ERS, HCL Tech wrote:
&
, February 22, 2011 5:26 PM
To: Maheswara Reddy C - ERS, HCL Tech
Cc: lxc-devel@lists.sourceforge.net
Subject: Re: [lxc-devel] do pid1 and pid2 run in the same network namespace
On 02/22/2011 12:22 PM, Maheswara Reddy C - ERS, HCL Tech wrote:
>> Then it is quite easy. You just have to fork ten tim
On 02/22/2011 12:22 PM, Maheswara Reddy C - ERS, HCL Tech wrote:
>> Then it is quite easy. You just have to fork ten times the routine in the
>> program I gave you in the previous email.
> Hi Daniel,
>
> But I want to run two different (fork() run same copy) process/threads in
> each namespace,
ter of each
process/thered to start.
Thanks
Mahesh
> -Original Message-
> From: Daniel Lezcano [mailto:daniel.lezc...@free.fr]
> Sent: Tuesday, February 22, 2011 2:47 PM
> To: Maheswara Reddy C - ERS, HCL Tech
> Cc: lxc-devel@lists.sourceforge.net
> Subject: Re: [lxc-devel
the previous email.
> -Original Message-
> From: Daniel Lezcano [mailto:daniel.lezc...@free.fr]
> Sent: Tuesday, February 22, 2011 2:47 PM
> To: Maheswara Reddy C - ERS, HCL Tech
> Cc: lxc-devel@lists.sourceforge.net
> Subject: Re: [lxc-devel] do pid1 and pid2 run in the same
-devel@lists.sourceforge.net
Subject: Re: [lxc-devel] do pid1 and pid2 run in the same network namespace
On 02/22/2011 07:41 AM, Maheswara Reddy C - ERS, HCL Tech wrote:
> Hi All,
>
>
>
> Does this way both pid1 and pid2 run in the same network namespace? Or please
> suggest any
On 02/22/2011 07:41 AM, Maheswara Reddy C - ERS, HCL Tech wrote:
> Hi All,
>
>
>
> Does this way both pid1 and pid2 run in the same network namespace? Or please
> suggest any other way
Mahesh,
please tell us what you want to do.
If you want to create a new network namespace, it is not mandatory
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