fork,clone,CLONE_VM prob.

Konstantin Muenning (koko@muenning.com)
Fri, 04 Sep 1998 01:29:55 +0200


Hello developers.

I have a problem with the clone system call I don't understand.

Is it possible that the clone call does not work right when the CLONE_VM
flag is used?

A small test program I have written which shows the prob is at

http://cip.physik.uni-bonn.de/~muenning/forktest.c

Please excuse the bad readability, the almost nonexistant comments and
the use of german but this code was NOT intended for general public.

When compiled like this the child process does not run at all but
becomes instantly a zombie.

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.

So, is there a way to create a child process that shares the page tables
(=memory areas) AND runs? What have I done wrong in my code?

Please reply also via e-mail.

TIA.

-- 
Konstantin Münning              ,,,                   uzs446@uni-bonn.de
-------------------------------/'^'\------------------------------------
www.muenning.com              ( o o )                  koko@muenning.com
--------------------------oOOO--(_)--OOOo-------------------------------
Ever notice that even the busiest people are never too busy to tell you
                      just how busy they are.
                               (-O-)
    Measure with a micrometer.  Mark with chalk.  Cut with an axe.
                               (-O-)
Subtlety is the art of saying what you think and getting out of the way
                      before it is understood.
                               (-O-)
   Don't take life too seriously -- you'll never get out of it alive.

- 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.altern.org/andrebalsa/doc/lkml-faq.html