WNOHANG
(setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru);
pid = waitpid(-1, &status, (WNOHANG|WUNTRACED));
flags |= WNOHANG;
while (waitpid(-1, &s, WNOHANG) > 0)
while ((cpid = waitpid(0, &cstat, WNOHANG)) > 0) {
pid = wait3(&status, WNOHANG, (struct rusage *)0);
while (waitpid(-1, NULL, WNOHANG) > 0)
if (waitpid(childpid, NULL, WNOHANG) == childpid)
while (waitpid(-1, NULL, WNOHANG) > 0)
while (waitpid(-1, NULL, WNOHANG) > 0)
while (waitpid(-1, NULL, WNOHANG) != -1)
res = waitpid(pid, &status, WNOHANG);
{ OSF1_WNOHANG, OSF1_WNOHANG, WNOHANG },
if (pid == 0 && options & WNOHANG) {
options |= WNOHANG;
options |= WNOHANG;
((options & WNOHANG) != 0 && dead == NULL)) {
#define WALLOPTS (WNOHANG|WALTSIG|WALLSIG|WNOWAIT|WNOZOMBIE|WSELECTOPTS)
if (waitpid(pargs->pta_childpid, &status, WNOHANG) > 0)
if (waitpid(pargs->pta_childpid, &status, WNOHANG) > 0)
WNOHANG,
wpid = TWAIT_GENERIC(tracee, NULL, WNOHANG), 0);
wpid = TWAIT_GENERIC(tracee, NULL, WNOHANG), 0);
waitpid(pid, NULL, WNOHANG);
TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(tracee, &status, WNOHANG),
wpid = TWAIT_GENERIC(tracee, NULL, WNOHANG), 0);
TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(child, &status, WNOHANG), 0);
wpid = TWAIT_GENERIC(tracee, NULL, WNOHANG), 0);
wpid = TWAIT_GENERIC(tracee, &status, WNOHANG), 0);
wpid = TWAIT_GENERIC(tracee, &status, WNOHANG), 0);
TWAIT_REQUIRE_SUCCESS(wpid = TWAIT_GENERIC(tracee, &status, WNOHANG),
switch (waitpid(pid, &status, WNOHANG)) {
switch (waitpid(pid, &status, WNOHANG)) {
#define TWAIT_OPTION WNOHANG
if (waitpid(-1, &status, WNOHANG) > 0) {
switch (waitpid(pid, &status, WNOHANG)) {
while ((pid = waitpid((pid_t)-1, &status, WNOHANG)) > 0) {
while ((pid = waitpid((pid_t)-1, &status, WNOHANG | WUNTRACED)) > 0) {
rval = waitpid((pid_t)-1, &status, WNOHANG);
while (waitpid((pid_t)-1, &status, WNOHANG) > 0)
pid = waitpid(-1, &status, WNOHANG|WUNTRACED);
WNOHANG : 0)) > 0) {
pid = wait4(-1, &status, WNOHANG, NULL);
while ((pid = wait3(&status, WNOHANG, (struct rusage *)0)) > 0)
pid = wait3(&status, WNOHANG, (struct rusage *)0);
pid = wait3(&status, WNOHANG, NULL);
while (wait3(&status, WNOHANG, 0) > 0)
while (waitpid(-1, &dummy, WNOHANG) > 0)
pid = wait4(-1, &sstatus, WNOHANG, NULL);
while (wait3(NULL, WNOHANG, NULL) > 0)
wait4(pid, &status, WNOHANG, 0);
pid = wait4(child, &status, WNOHANG, 0);
while ((pid = wait3(&status, WNOHANG, NULL)) > 0) {
if (waitpid(pid, &status, WNOHANG) > 0)