Lines Matching defs:wstatus
791 static int rcheck(int wstatus, const char *what)
793 if (WIFEXITED(wstatus)) {
794 if (WEXITSTATUS(wstatus) == 0)
796 fprintf(stderr, "%s exited, status=%d\n", what, WEXITSTATUS(wstatus));
797 return WEXITSTATUS(wstatus);
798 } else if (WIFSIGNALED(wstatus)) {
799 xerror("%s killed by signal %d\n", what, WTERMSIG(wstatus));
800 } else if (WIFSTOPPED(wstatus)) {
801 xerror("%s stopped by signal %d\n", what, WSTOPSIG(wstatus));
828 int e1, e2, wstatus;
856 ret = waitpid(s, &wstatus, 0);
859 e1 = rcheck(wstatus, "server");
860 ret = waitpid(c, &wstatus, 0);
863 e2 = rcheck(wstatus, "client");