5 #include "posix-compat.h"
13 pid_t children[CHILD_CNT];
16 printf ("(page-parallel) begin\n");
17 for (i = 0; i < CHILD_CNT; i++)
19 printf ("(page-parallel) start child %d\n", i);
20 children[i] = exec ("child-linear");
21 if (children[i] == -1)
23 printf ("(page-parallel) exec() returned pid -1\n");
28 for (i = 0; i < CHILD_CNT; i++)
31 printf ("(page-parallel) wait for child %d\n", i);
32 code = wait (children[i]);
34 printf ("(page-parallel) child %d returned bad exit code\n", i);
36 printf ("(page-parallel) end\n");