Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/perf_events/
H A Dremove_on_exec.c148 ASSERT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Child is running. */ in TEST_F()
157 EXPECT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Should still be running. */ in TEST_F()
190 EXPECT_EQ(waitpid(pid_exec, &tmp, WNOHANG), 0); /* Should still be running. */ in TEST_F()
219 EXPECT_EQ(waitpid(pids[i], &tmp, WNOHANG), 0); in TEST_F()
/linux/include/uapi/linux/
H A Dwait.h5 #define WNOHANG 0x00000001 macro
/linux/tools/testing/selftests/timers/
H A Dskew_consistency.c55 while (pid != waitpid(pid, &ret, WNOHANG)) { in main()
H A Dclocksource-switch.c177 while (pid != waitpid(pid, &status, WNOHANG)) in main()
/linux/tools/testing/selftests/ptrace/
H A Dvmaccess.c62 k = waitpid(-1, &s, WNOHANG); in TEST()
/linux/arch/um/os-Linux/
H A Dutil.c152 while ((pid = waitpid(-1, NULL, WNOHANG | __WALL)) > 0) in os_dump_core()
H A Dprocess.c75 return waitpid(-1, &status, WNOHANG); in os_reap_child()
/linux/tools/testing/selftests/rlimits/
H A Drlimits-per-userns.c120 pid_t ret = waitpid(child[i], &wstatus[i], WNOHANG); in main()
/linux/scripts/
H A Dgenerate_initcall_order.pl167 $pid = waitpid(-1, WNOHANG);
/linux/tools/tracing/rtla/src/
H A Dtimerlat_u.c184 pid = waitpid(-1, &wstatus, WNOHANG); in timerlat_u_dispatcher()
/linux/kernel/
H A Dexit.c1698 if (!retval && !(wo->wo_flags & WNOHANG)) in __do_wait()
1737 if (options & ~(WNOHANG|WNOWAIT|WEXITED|WSTOPPED|WCONTINUED| in kernel_waitid_prepare()
1784 wo->wo_flags |= WNOHANG; in kernel_waitid_prepare()
1800 if (!ret && !(options & WNOHANG) && (wo.wo_flags & WNOHANG)) in kernel_waitid()
1848 if (options & ~(WNOHANG|WUNTRACED|WCONTINUED| in kernel_wait4()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_wait.c202 ret = sys_waitid(P_PIDFD, pidfd, &info, WEXITED | WNOHANG); in TEST()
/linux/tools/lib/subcmd/
H A Drun-command.c177 pid_t waiting = waitpid(cmd->pid, &status, block ? 0 : WNOHANG); in wait_or_whine()
/linux/tools/testing/selftests/
H A Dkselftest_harness.h1007 child = waitpid(t->pid, &status, WNOHANG); in __wait_for_test()
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c1401 CASE_TEST(waitpid_min); EXPECT_SYSER(1, waitpid(INT_MIN, &tmp, WNOHANG), -1, ESRCH); break; in run_syscall()
1402 …CASE_TEST(waitpid_child); EXPECT_SYSER(1, waitpid(getpid(), &tmp, WNOHANG), -1, ECHILD); break; in run_syscall()
/linux/tools/perf/
H A Dbuiltin-daemon.c419 pid = waitpid(session->pid, &status, WNOHANG); in handle_signalfd()
H A Dbuiltin-stat.c642 child_exited = waitpid(child_pid, &status, WNOHANG); in dispatch_events()
/linux/tools/perf/util/
H A Devlist.c1580 waitpid(evlist->workload.pid, &status, WNOHANG); in evlist__cancel_workload()