Lines Matching refs:child
71 pid_t child;
80 child = fork();
81 if (child < 0) {
85 if (child == 0) {
86 /* Child: do execveat(). */
92 /* Parent: wait for & check child's exit status. */
93 rc = waitpid(child, &status, 0);
94 if (rc != child) {
95 printf("[FAIL] (waitpid(%d,...) returned %d)\n", child, rc);
99 printf("[FAIL] (child %d did not exit cleanly, status=%08x)\n",
100 child, status);
105 printf("[FAIL] (child %d exited with %d not %d nor %d)\n",
106 child, WEXITSTATUS(status), expected_rc, expected_rc2);