7 main (int argc UNUSED, char *argv[])
9 int n = atoi (argv[1]);
13 printf ("(multi-recurse) begin %d\n", n);
19 snprintf (child_cmd, sizeof child_cmd, "multi-recurse %d", n - 1);
20 child_pid = exec (child_cmd);
23 int code = wait (child_pid);
25 printf ("(multi-recurse) fail: wait(exec(\"%s\")) returned %d\n",
29 printf ("(multi-recurse) fail: exec(\"%s\") returned -1\n", child_cmd);
32 printf ("(multi-recurse) end %d\n", n);