Lines Matching refs:wstatus
269 int wstatus;
285 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);
290 if (WIFEXITED(wstatus)) {
291 if (WEXITSTATUS(wstatus) == EXIT_SUCCESS) {
304 } else if (WIFSIGNALED(wstatus)) {
305 if (WTERMSIG(wstatus) == 9) {
311 die("unexpected signal: %d\n", wstatus);
314 die("unexpected status: %d\n", wstatus);
316 } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));
325 int wstatus;
341 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);
346 if (WIFEXITED(wstatus)) {
347 if (WEXITSTATUS(wstatus) == EXIT_SUCCESS) {
360 } else if (WIFSIGNALED(wstatus)) {
361 if (WTERMSIG(wstatus) == 9) {
367 die("unexpected signal: %d\n", wstatus);
370 die("unexpected status: %d\n", wstatus);
372 } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));
381 int wstatus;
406 w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);
411 if (WIFEXITED(wstatus)) {
412 if (WEXITSTATUS(wstatus) == EXIT_SUCCESS) {
425 } else if (WIFSIGNALED(wstatus)) {
426 if (WTERMSIG(wstatus) == 9) {
432 die("unexpected signal: %d\n", wstatus);
435 die("unexpected status: %d\n", wstatus);
437 } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));