Lines Matching refs:child_pid
36 typedef int (*wait_call_function)(pid_t child_pid);
69 static int check_wait(pid_t child_pid) { in check_wait() argument
72 if (ret != child_pid) { in check_wait()
73 fprintf(stderr, "ERROR: wait() returned %d, expected %d\n", ret, child_pid); in check_wait()
80 static int check_waitpid(pid_t child_pid) { in check_waitpid() argument
83 if (ret != child_pid) { in check_waitpid()
84 fprintf(stderr, "ERROR: waitpid() returned %d, expected %d\n", ret, child_pid); in check_waitpid()
91 static int check_wait3(pid_t child_pid) { in check_wait3() argument
95 if (ret != child_pid) { in check_wait3()
96 fprintf(stderr, "ERROR: wait3() returned %d, expected %d\n", ret, child_pid); in check_wait3()
103 static int check_wait4(pid_t child_pid) { in check_wait4() argument
107 if (ret != child_pid) { in check_wait4()
108 fprintf(stderr, "ERROR: wait3() returned %d, expected %d\n", ret, child_pid); in check_wait4()