better script using python
[tridge/junkcode.git] / pclone.c
1 /* test the clone syscall with new flags */
2 #include <stdio.h>
3 #include <signal.h>
4 #include <linux/sched.h>
5 #include <linux/unistd.h>
6
7 _syscall2(int, clone, int, flags, int, sp);
8
9 main()
10 {
11   printf("pid=%d\n",getpid());
12
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());
16 }