7 main (int argc UNUSED, char *argv[])
17 printf ("(multi-oom) begin %d\n", n);
19 snprintf (child_cmd, sizeof child_cmd, "multi-oom %d", n + 1);
20 child_pid = exec (child_cmd);
23 int code = wait (child_pid);
25 printf ("(multi-oom) fail: wait(exec(\"%s\")) returned %d\n",
29 printf ("(multi-oom) fail: exec(\"%s\") returned -1 "
30 "after only %d recursions\n",
33 printf ("(multi-oom) end %d\n", n);