Lines Matching defs:wstatus
799 static int rcheck(int wstatus, const char *what)
801 if (WIFEXITED(wstatus)) {
802 if (WEXITSTATUS(wstatus) == 0)
804 fprintf(stderr, "%s exited, status=%d\n", what, WEXITSTATUS(wstatus));
805 return WEXITSTATUS(wstatus);
806 } else if (WIFSIGNALED(wstatus)) {
807 xerror("%s killed by signal %d\n", what, WTERMSIG(wstatus));
808 } else if (WIFSTOPPED(wstatus)) {
809 xerror("%s stopped by signal %d\n", what, WSTOPSIG(wstatus));
836 int e1, e2, wstatus;
864 ret = waitpid(s, &wstatus, 0);
867 e1 = rcheck(wstatus, "server");
868 ret = waitpid(c, &wstatus, 0);
871 e2 = rcheck(wstatus, "client");