Lines Matching refs:status
547 int status;
551 waitpid(TT.pid, &status, 0);
553 if (WIFSTOPPED(status) && WSTOPSIG(status) & 0x80) return 1;
554 if (WIFEXITED(status)) return 0;
555 fprintf(stderr, "[stopped %d (%x)]\n", status, WSTOPSIG(status));
567 int status;
591 waitpid(TT.pid, &status, 0);
592 } while (!WIFSTOPPED(status));
610 waitpid(TT.pid, &status, 0);
611 if (WIFEXITED(status))
612 fprintf(stderr, "+++ exited with %d +++\n", WEXITSTATUS(status));
613 if (WIFSTOPPED(status))
614 fprintf(stderr, "+++ stopped with %d +++\n", WSTOPSIG(status));