/third_party/ltp/testcases/kernel/syscalls/waitpid/ |
H A D | waitpid12.c | 30 * WNOHANG 54 if (TST_TRACE(waitpid_ret_test(0, &status, WNOHANG, 0, 0))) in do_child_1() 57 if (TST_TRACE(waitpid_ret_test(-group, &status, WNOHANG, 0, 0))) in do_child_1() 62 if (TST_TRACE(reap_children(0, WNOHANG, fork_kid_pid + (MAXKIDS / 2), in do_child_1() 66 if (TST_TRACE(reap_children(-group, WNOHANG, fork_kid_pid, in do_child_1()
|
H A D | waitpid09.c | 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); in case0() 57 tst_res(TFAIL, "waitpid(WNOHANG) returned %d, expected 0", in case0() 66 tst_res(TPASS, "waitpid(pid, WNOHANG) = 0 for a running child"); in case0() 79 ret = waitpid(pid, &status, WNOHANG); in case1() 89 tst_res(TFAIL, "waitpid(WNOHANG) returned %d, expected %d", in case1() 106 tst_res(TPASS, "waitpid(pid, WNOHANG) = pid for an exited child"); in case1() 134 ret = waitpid(-1, &status, WNOHANG); in case3() [all...] |
H A D | waitpid13.c | 53 if (TST_TRACE(waitpid_ret_test(0, &status, WNOHANG | WUNTRACED, 0, 0))) in do_child_1() 56 if (TST_TRACE(waitpid_ret_test(-group, &status, WNOHANG | WUNTRACED, in do_child_1()
|
H A D | waitpid07.c | 28 * Check proper functioning of waitpid with pid = -1 and arg = WNOHANG 50 /* Check that waitpid with WNOHANG returns zero */ in do_child_1() 51 if (TST_TRACE(waitpid_ret_test(-1, &status, WNOHANG, 0, 0))) in do_child_1() 56 if (TST_TRACE(reap_children(-1, WNOHANG, fork_kid_pid, MAXKIDS))) in do_child_1()
|
H A D | waitpid08.c | 51 /* Check that waitpid with WNOHANG|WUNTRACED returns in do_child_1() 54 if (TST_TRACE(waitpid_ret_test(-1, &status, WNOHANG | WUNTRACED, 0, 0))) in do_child_1()
|
/third_party/curl/tests/ |
H A D | processhelp.pm | 200 if($flags == &WNOHANG) { 237 pidwait($pid, &WNOHANG); 287 pidwait($pid, &WNOHANG); 305 pidwait($pid, &WNOHANG); 322 pidwait($pid, &WNOHANG);
|
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
H A D | test_proxies.c | 223 wpid = waitpid(child_mhd,&childstatus,WNOHANG); in main() 231 wpid = waitpid(child_spdy2http,&childstatus,WNOHANG); in main() 239 wpid = waitpid(child_mhd2spdy,&childstatus,WNOHANG); in main() 247 if(waitpid(child_curl,&childstatus,WNOHANG) == child_curl) in main()
|
/third_party/python/Lib/test/ |
H A D | test_wait3.py | 27 spid, status, rusage = os.wait3(os.WNOHANG) 43 pid, status, rusage = os.wait3(os.WNOHANG)
|
H A D | test_wait4.py | 20 option = os.WNOHANG 23 # with WNOHANG.
|
/third_party/libwebsockets/lib/plat/unix/ |
H A D | unix-spawn.c | 167 n = wait4(lsp->child_pid, &status, WNOHANG, &rusa); in lws_spawn_reap() 172 n = waitid(P_PID, (id_t)lsp->child_pid, &lsp->si, WEXITED | WNOHANG | WNOWAIT); in lws_spawn_reap() 232 n = wait4(lsp->child_pid, &status, WNOHANG, &rusa); in lws_spawn_reap() 240 n = waitid(P_PID, (id_t)lsp->child_pid, &temp.si, WEXITED | WNOHANG); in lws_spawn_reap() 306 n = waitpid(-lsp->child_pid, &status, WNOHANG); in lws_spawn_piped_kill_child_process() 310 n = waitpid(lsp->child_pid, &status, WNOHANG); in lws_spawn_piped_kill_child_process()
|
/third_party/python/Lib/multiprocessing/ |
H A D | popen_forkserver.py | 61 def poll(self, flag=os.WNOHANG): 64 timeout = 0 if flag == os.WNOHANG else None
|
H A D | popen_fork.py | 24 def poll(self, flag=os.WNOHANG): 43 return self.poll(os.WNOHANG if timeout == 0.0 else 0)
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_ptrace.rs | 120 let _ = waitpid(child, Some(WaitPidFlag::WNOHANG)); in test_ptrace_cont() 122 let _ = waitpid(child, Some(WaitPidFlag::WNOHANG)); in test_ptrace_cont() 168 let _ = waitpid(child, Some(WaitPidFlag::WNOHANG)); in test_ptrace_interrupt() 170 let _ = waitpid(child, Some(WaitPidFlag::WNOHANG)); in test_ptrace_interrupt()
|
/third_party/ltp/testcases/kernel/io/ltp-aiodio/ |
H A D | aiodio_append.c | 164 if (SAFE_WAITPID(pid, NULL, WNOHANG)) in run() 177 if (SAFE_WAITPID(-1, &status, WNOHANG)) in run()
|
H A D | dio_append.c | 80 if (SAFE_WAITPID(-1, &status, WNOHANG)) in run()
|
/third_party/ltp/testcases/kernel/pty/ |
H A D | hangup01.c | 72 if (waitpid(childpid, &status, WNOHANG) < 0) { in cleanup() 146 while (waitpid(childpid, &status, WNOHANG) < 0 && errno != ESRCH) ; in parent()
|
/third_party/ltp/testcases/kernel/syscalls/waitid/ |
H A D | waitid03.c | 22 TST_EXP_FAIL(waitid(P_ALL, 0, infop, WNOHANG | WEXITED), ECHILD); in run()
|
H A D | waitid02.c | 21 TST_EXP_FAIL(waitid(P_ALL, 0, infop, WNOHANG), EINVAL); in run()
|
H A D | waitid04.c | 11 * This test if waitid() syscall leaves the si_pid set to 0 with WNOHANG flag 31 TST_EXP_PASS(waitid(P_ALL, pid_child, infop, WNOHANG | WEXITED)); in run()
|
/third_party/musl/libc-test/src/api/ |
H A D | sys_wait.c | 14 C(WNOHANG) in f()
|
/third_party/skia/third_party/externals/microhttpd/src/testzzuf/ |
H A D | socat.c | 79 if (0 < waitpid (zzuf_pid, &status, WNOHANG)) in zzuf_socat_start()
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | wait.h | 36 #define WNOHANG 1 macro
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | wait.h | 36 #define WNOHANG 1 macro
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | wait.h | 36 #define WNOHANG 1 macro
|
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | wait.h | 40 #define WNOHANG 1 macro
|