Home
last modified time | relevance | path

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

/linux-6.15/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-6.15/tools/testing/selftests/kvm/
H A Dhardware_disable_test.c134 if (pid != waitpid(pid, &status, WNOHANG)) in wait_for_child_setup()
170 r = waitpid(pid, &s, WNOHANG); in main()
/linux-6.15/include/uapi/linux/
H A Dwait.h5 #define WNOHANG 0x00000001 macro
/linux-6.15/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-6.15/tools/testing/selftests/ptrace/
H A Dvmaccess.c62 k = waitpid(-1, &s, WNOHANG); in TEST()
/linux-6.15/arch/um/os-Linux/
H A Dutil.c153 while ((pid = waitpid(-1, NULL, WNOHANG | __WALL)) > 0) in os_dump_core()
/linux-6.15/tools/testing/selftests/rlimits/
H A Drlimits-per-userns.c120 pid_t ret = waitpid(child[i], &wstatus[i], WNOHANG); in main()
/linux-6.15/scripts/
H A Dgenerate_initcall_order.pl167 $pid = waitpid(-1, WNOHANG);
/linux-6.15/tools/tracing/rtla/src/
H A Dtimerlat_u.c188 pid = waitpid(-1, &wstatus, WNOHANG); in timerlat_u_dispatcher()
/linux-6.15/kernel/
H A Dexit.c1688 if (!retval && !(wo->wo_flags & WNOHANG)) in __do_wait()
1727 if (options & ~(WNOHANG|WNOWAIT|WEXITED|WSTOPPED|WCONTINUED| in kernel_waitid_prepare()
1774 wo->wo_flags |= WNOHANG; in kernel_waitid_prepare()
1790 if (!ret && !(options & WNOHANG) && (wo.wo_flags & WNOHANG)) in kernel_waitid()
1838 if (options & ~(WNOHANG|WUNTRACED|WCONTINUED| in kernel_wait4()
/linux-6.15/tools/testing/selftests/pidfd/
H A Dpidfd_wait.c202 ret = sys_waitid(P_PIDFD, pidfd, &info, WEXITED | WNOHANG); in TEST()
/linux-6.15/tools/lib/subcmd/
H A Drun-command.c176 pid_t waiting = waitpid(cmd->pid, &status, block ? 0 : WNOHANG); in wait_or_whine()
/linux-6.15/tools/testing/selftests/nolibc/
H A Dnolibc-test.c1157 CASE_TEST(waitpid_min); EXPECT_SYSER(1, waitpid(INT_MIN, &tmp, WNOHANG), -1, ESRCH); break; in run_syscall()
1158 …CASE_TEST(waitpid_child); EXPECT_SYSER(1, waitpid(getpid(), &tmp, WNOHANG), -1, ECHILD); break; in run_syscall()
/linux-6.15/tools/perf/
H A Dbuiltin-daemon.c419 pid = waitpid(session->pid, &status, WNOHANG); in handle_signalfd()
H A Dbuiltin-stat.c590 child_exited = waitpid(child_pid, &status, WNOHANG); in dispatch_events()
/linux-6.15/tools/perf/util/
H A Devlist.c1569 waitpid(evlist->workload.pid, &status, WNOHANG); in evlist__cancel_workload()