Home
last modified time | relevance | path

Searched refs:WNOHANG (Results 1 – 25 of 129) sorted by relevance

123456

/freebsd/contrib/tcsh/
H A Dsh.proc.c184 (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 Dtc.wait.h140 # ifndef WNOHANG
141 # define WNOHANG 1 /* dont hang in wait */ macro
H A Dmi.wait.h26 #define WNOHANG 1 /* do not wait for child to exit */ macro
/freebsd/tests/sys/fifo/
H A Dfifo_open.c136 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 Dwaitpid_nohang.c48 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 Dprocdesc.cc342 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 Dwaittest.c33 pid_t child = waitpid(-1, &rc, WNOHANG); in main()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_select.c158 switch (waitpid(pid, &status, WNOHANG)) { in ATF_TC_BODY()
196 switch (waitpid(pid, &status, WNOHANG)) { in ATF_TC_BODY()
H A Dt_wait_noproc_wnohang.c29 #define TWAIT_OPTION WNOHANG
/freebsd/contrib/llvm-project/llvm/lib/Support/Unix/
H A DProgram.inc372 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 Dkadm_conn.c99 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 Dptrace.sh77 if ((rpid = wait4(-1, &status, WNOHANG, &ru)) == -1) {
H A Dvfork.sh98 if ((rpid = wait4(-1, &status, WNOHANG, &ru)) == -1) {
H A Dsyzkaller42.sh90 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
H A Dsyzkaller24.sh96 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
H A Dsyzkaller29.sh94 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
H A Dsyzkaller33.sh103 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
H A Dsyzkaller34.sh68 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
H A Dptrace10.sh127 ret = waitpid(pid, &status, WUNTRACED | WNOHANG);
H A Dpipe3.sh131 WNOHANG)) == -1)
H A Dsyzkaller27.sh101 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
H A Dsyzkaller59.sh109 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
H A Dsyzkaller12.sh109 if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
/freebsd/sys/sys/
H A Dwait.h77 #define WNOHANG 1 /* Don't hang in wait. */ macro
/freebsd/contrib/netbsd-tests/fs/common/
H A Dfstest_puffs.c438 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()

123456