WEXITED
WEXITED | WNOHANG) < 0) {
ATF_REQUIRE(waitpid(pid, &status, WEXITED) != -1);
(void) waitpid(kidpid, &stat, WEXITED);
opt6 = options & (WEXITED | WTRAPPED);
lua_pushflag(L, WEXITED);
if (waitpid(pid, &status, WUNTRACED | WEXITED) == -1) {
error = waitpid(pid, &status, WEXITED);
if (waitpid(p, &status, WEXITED) < 0) {
*bsdopts |= WEXITED;
options |= WEXITED | WTRAPPED;
if ((options & WEXITED) == 0 && p->p_state == PRS_ZOMBIE) {
options |= WEXITED | WTRAPPED;
WEXITED | WTRAPPED | WLINUXCLONE)) != 0)
if ((options & (WEXITED | WUNTRACED | WCONTINUED | WTRAPPED)) == 0) {
if ((options & WEXITED) == 0 && p->p_state == PRS_ZOMBIE) {
ATF_REQUIRE(wait6(P_ALL, 0, &status, WEXITED, NULL,NULL) != -1);
waitpid(child, NULL, WEXITED);
r = waitid(P_PID, child, NULL, WEXITED | WNOWAIT);
waited_pid = waitpid(pid, &status, WEXITED);
waited_pid = waitpid(pid, &status, WEXITED | WNOHANG);
waited_pid = waitpid(pid, &status, WEXITED);
ATF_REQUIRE_ERRNO(EBADF, pdwait(99999, NULL, WEXITED, NULL, NULL) < 0);
pdwait(fdp, (int*)unmapped(), WEXITED, NULL, NULL) < 0);
pdwait(fdp, NULL, WEXITED, (struct __wrusage*)unmapped(), NULL) < 0
pdwait(fdp, NULL, WEXITED, NULL, (struct __siginfo*)unmapped()) < 0
pdwait(STDERR_FILENO, NULL, WEXITED, NULL, NULL) < 0);
pdwait(fdp, &status, WEXITED, NULL, NULL) < 0);
r = pdwait(fdp, &status, WEXITED, NULL, NULL);
waited_pid = waitpid(pid, &status, WEXITED);
ATF_REQUIRE_ERRNO(ESRCH, pdwait(fdp, NULL, WEXITED, NULL, NULL) < 0);
r = pdwait(fdp, &status, WEXITED, NULL, NULL);
ATF_REQUIRE_ERRNO(ESRCH, pdwait(fdp, NULL, WEXITED, NULL, NULL) < 0);
r = pdwait(fdp, &status, WEXITED, &ru, &si);
r = pdwait(fdp, &status, WEXITED, NULL, NULL);
ATF_REQUIRE_EQ(dangle_pid, waitpid(dangle_pid, NULL, WEXITED));
ATF_REQUIRE_EQ(pid, waitpid(pid, NULL, WEXITED));
WNOWAIT | WEXITED) != 0)
WNOWAIT | WEXITED) != 0)
ATF_REQUIRE(waitid(P_PID, pid, NULL, WEXITED) == 0);
ATF_REQUIRE(waitid(P_PID, pid, NULL, WEXITED) == 0);
ATF_REQUIRE(waitid(P_PID, kpid, &si, WEXITED) == 0);
ATF_REQUIRE(waitid(P_PID, pid, &si, WEXITED) == 0);
r = waitid(P_PID, child, NULL, WEXITED | WNOWAIT);
error = waitpid(child, &status, WTRAPPED | WEXITED);
error = waitpid(child, &status, WTRAPPED | WEXITED);
while (pdwait(pr->procd, &wstatus, WEXITED, NULL, NULL) == -1) {
while (pdwait(pd, &status, WEXITED, NULL, NULL) == -1) {
if (waitid(P_ALL, 0, &si, WTRAPPED | WEXITED) == -1) {