Lines Matching refs:wstatus
89 int wstatus[NR_CHILDS];
110 wstatus[i] = 0;
120 pid_t ret = waitpid(child[i], &wstatus[i], WNOHANG);
122 if (!ret || (!WIFEXITED(wstatus[i]) && !WIFSIGNALED(wstatus[i])))
145 if (WIFEXITED(wstatus[i]))
147 pid, -child[i], WEXITSTATUS(wstatus[i]));
148 else if (WIFSIGNALED(wstatus[i]))
150 pid, -child[i], WTERMSIG(wstatus[i]));
152 if (WIFSIGNALED(wstatus[i]) && WTERMSIG(wstatus[i]) == SIGUSR1)