1 /* Wait for a subprocess to finish, twice.
2 The first call must wait in the usual way and return the exit code.
3 The second wait call must return -1 immediately. */
7 #include "tests/main.h"
12 pid_t child = exec ("child-simple");
13 msg ("wait(exec()) = %d", wait (child));
14 msg ("wait(exec()) = %d", wait (child));