Re: fork,clone,CLONE_VM prob.

Richard Gooch (rgooch@atnf.csiro.au)
Fri, 4 Sep 1998 15:51:11 +1000


Chris Wedgwood writes:
> On Fri, Sep 04, 1998 at 01:29:55AM +0200, Konstantin Muenning wrote:
>
> > I have figured out that any combination of the clone-flags works
> > except when using CLONE_VM. Even when using CLONE_VM, the call
> > completes successful.
>
> I think when using CLONE_VM both processes return with the same stack
> and bad things happen.

Yep.

> You need some assembly here to fix this up, I think libpthreads does
> it this way.

Yep.

Regards,

Richard....

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html