/freebsd/contrib/tcsh/ |
H A D | sh.proc.c | 184 (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); in pchild() 190 (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); in pchild() 193 (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); in pchild() 197 (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru); in pchild() 204 (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG)); in pchild() 211 (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), 0); in pchild() 214 (setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG)); in pchild() 223 pid = wait3(&w.w_status, WNOHANG, 0); in pchild() 226 pid = wait3(&w, WNOHANG, &ru); in pchild() 228 pid = wait3(&w.w_status, WNOHANG, &ru); in pchild() [all …]
|
H A D | tc.wait.h | 140 # ifndef WNOHANG 141 # define WNOHANG 1 /* dont hang in wait */ macro
|
H A D | mi.wait.h | 26 #define WNOHANG 1 /* do not wait for child to exit */ macro
|
/freebsd/tests/sys/fifo/ |
H A D | fifo_open.c | 136 wpid = waitpid(pid, status, WNOHANG); in wait_and_timeout() 148 wpid = waitpid(pid, status, WNOHANG); in wait_and_timeout() 251 wpid = waitpid(reader_pid, &status, WNOHANG); in test_blocking_reader() 326 wpid = waitpid(writer_pid, &status, WNOHANG); in test_blocking_writer()
|
/freebsd/tests/sys/kern/ |
H A D | waitpid_nohang.c | 48 pid = waitpid(child, &status, WNOHANG); in ATF_TC_BODY() 58 pid = waitpid(child, &status, WNOHANG); in ATF_TC_BODY()
|
/freebsd/contrib/capsicum-test/ |
H A D | procdesc.cc | 342 waitpid(pid_, NULL, __WALL|WNOHANG); in ~PipePdforkBase() 521 EXPECT_EQ(0, waitpid(pid_, &status, __WALL|WNOHANG)); in TEST_F() 538 EXPECT_EQ(pid_, waitpid(pid_, &status, __WALL|WNOHANG)); in TEST_F() 554 EXPECT_EQ(0, waitpid(pid_, &status, __WALL|WNOHANG)); in TEST_F() 557 EXPECT_EQ(-1, pdwait4_(pd_, &status, WNOHANG, NULL)); in TEST_F() 561 EXPECT_EQ(0, pdwait4_(pd_other, &status, WNOHANG, NULL)); in TEST_F() 607 EXPECT_SYSCALL_FAIL(EBADF, pdwait4_(pd, &status, WNOHANG, NULL)); in FORK_TEST() 613 int rc = pdwait4_(pd, &status, WNOHANG, NULL); in FORK_TEST() 867 EXPECT_EQ(-1, waitpid(-1, &rc, WNOHANG)); in TEST_F()
|
H A D | waittest.c | 33 pid_t child = waitpid(-1, &rc, WNOHANG); in main()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_select.c | 158 switch (waitpid(pid, &status, WNOHANG)) { in ATF_TC_BODY() 196 switch (waitpid(pid, &status, WNOHANG)) { in ATF_TC_BODY()
|
H A D | t_wait_noproc_wnohang.c | 29 #define TWAIT_OPTION WNOHANG
|
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/ |
H A D | Program.inc | 372 assert((options & ~WNOHANG) == 0 && "Expecting WNOHANG at most!"); 375 // AIX wait4 does not work well with WNOHANG. 376 if (!(options & WNOHANG)) 379 // For WNOHANG, we use waitid (which supports WNOWAIT) until the child process 394 return ::wait4(pid, status, options & ~WNOHANG, usage); 413 WaitPidOptions = WNOHANG;
|
/freebsd/crypto/heimdal/kadmin/ |
H A D | kadm_conn.c | 99 while ((waitpid(-1, &status, WNOHANG)) > 0) in sigchld() 217 while ((waitpid(-1, &status, WNOHANG)) > 0) in wait_for_connection()
|
/freebsd/tools/test/stress2/misc/ |
H A D | ptrace.sh | 77 if ((rpid = wait4(-1, &status, WNOHANG, &ru)) == -1) {
|
H A D | vfork.sh | 98 if ((rpid = wait4(-1, &status, WNOHANG, &ru)) == -1) {
|
H A D | syzkaller42.sh | 90 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
|
H A D | syzkaller24.sh | 96 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
|
H A D | syzkaller29.sh | 94 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
|
H A D | syzkaller33.sh | 103 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
|
H A D | syzkaller34.sh | 68 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
|
H A D | ptrace10.sh | 127 ret = waitpid(pid, &status, WUNTRACED | WNOHANG);
|
H A D | pipe3.sh | 131 WNOHANG)) == -1)
|
H A D | syzkaller27.sh | 101 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
|
H A D | syzkaller59.sh | 109 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
|
H A D | syzkaller12.sh | 109 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
|
/freebsd/sys/sys/ |
H A D | wait.h | 77 #define WNOHANG 1 /* Don't hang in wait. */ macro
|
/freebsd/contrib/netbsd-tests/fs/common/ |
H A D | fstest_puffs.c | 438 if (waitpid(pargs->pta_childpid, &status, WNOHANG) > 0) in puffs_fstest_unmount() 442 if (waitpid(pargs->pta_childpid, &status, WNOHANG) > 0) in puffs_fstest_unmount()
|