2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
15 int retval
= RETURN_OK
;
21 printf("I'm parent, I have a child with pid %d\n", (int) pid
);
22 waitpid(pid
, &status
, 0);
28 printf("I'm child\n");
39 printf("I'm parent, I have a first child with pid %d\n", (int) pid
);
44 printf("I'm parent, I have a second child with pid %d\n", (int) pid2
);
45 waitpid(pid2
, &status
, 0);
51 printf("I'm second child\n");
54 waitpid(pid
, NULL
, 0);
62 printf("I'm child, I have my child with pid2 %d\n", (int) pid2
);
64 waitpid(pid2
, &status
, 0);
70 printf("I'm the child of a child\n");