Lines Matching refs:waitpid
8 * waitpid(pid, WNOHANG) should return 0 if there is a running child
10 * waitpid(pid, WNOHANG) should return the pid of the child if
13 * waitpid(-1, 0) should return -1 with ECHILD if
16 * waitpid(-1, WNOHANG) should return -1 with ECHILD if
32 waitpid(pid, NULL, 0);
49 ret = waitpid(pid, &status, WNOHANG);
57 tst_res(TFAIL, "waitpid(WNOHANG) returned %d, expected 0",
66 tst_res(TPASS, "waitpid(pid, WNOHANG) = 0 for a running child");
79 ret = waitpid(pid, &status, WNOHANG);
89 tst_res(TFAIL, "waitpid(WNOHANG) returned %d, expected %d",
106 tst_res(TPASS, "waitpid(pid, WNOHANG) = pid for an exited child");
114 ret = waitpid(-1, &status, 0);
126 tst_res(TPASS, "waitpid(-1, 0) = -1 with ECHILD if no children");
134 ret = waitpid(-1, &status, WNOHANG);
145 tst_res(TPASS, "waitpid(-1, WNOHANG) = -1 with ECHILD if no children");