3 #include <aros/debug.h>
14 printf("I'm parent, I have a child with pid %d\n", (int) pid
);
15 waitpid(pid
, NULL
, 0);
19 execl("C:Echo", "Echo", "I'm child", NULL
);
30 printf("I'm parent, I have a first child with pid %d\n", (int) pid
);
34 printf("I'm parent, I have a second child with pid %d\n", (int) pid2
);
35 waitpid(pid2
, NULL
, 0);
39 execl("C:Echo", "Echo", "I'm the second child of a parent", NULL
);
42 waitpid(pid
, NULL
, 0);
46 //printf("I'm child of a parent\n");
50 //printf("I'm child, I have my child with pid %d\n", (int) pid2);
51 waitpid(pid2
, NULL
, 0);
55 execl("C:Echo", "Echo", "I'm child of a child", NULL
);