blob: 75bc54516c5bd32770f62d0f3d914ecff370a668 [file] [log] [blame]
Wichert Akkerman529f06d2000-04-10 22:26:39 +00001#include <stdio.h>
2#include <sched.h>
3
4int child(void* arg) {
5 write(1, "clone\n", 6);
6 return 0;
7}
8
9int
10main()
11{
12 char stack[4096];
Wichert Akkerman9b0c31d2000-09-03 21:56:29 +000013 clone(child, stack+4000, CLONE_VM|CLONE_FS|CLONE_FILES, NULL);
14 write(1, "original\n", 9);
Wichert Akkerman529f06d2000-04-10 22:26:39 +000015 exit(0);
16}