1 /* test the clone syscall with new flags */
4 #include <linux/sched.h>
5 #include <linux/unistd.h>
7 _syscall2(int, clone, int, flags, int, sp);
11 printf("pid=%d\n",getpid());
13 /* clone(SIGCLD|CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND,0); */
14 clone(SIGCLD|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_PID|CLONE_VM,0);
15 printf("pid=%d\n",getpid());