Lines Matching refs:WNOHANG
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
16 * waitpid(-1, WNOHANG) should return -1 with ECHILD if
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");
134 ret = waitpid(-1, &status, WNOHANG);
136 tst_res(TFAIL, "WNOHANG: Expected -1, got %d", ret);
140 tst_res(TFAIL, "WNOHANG: Expected %s, got %s",
145 tst_res(TPASS, "waitpid(-1, WNOHANG) = -1 with ECHILD if no children");