Lines Matching defs:wstatus
553 static int rcheck(int wstatus, const char *what)
555 if (WIFEXITED(wstatus)) {
556 if (WEXITSTATUS(wstatus) == 0)
558 fprintf(stderr, "%s exited, status=%d\n", what, WEXITSTATUS(wstatus));
559 return WEXITSTATUS(wstatus);
560 } else if (WIFSIGNALED(wstatus)) {
561 xerror("%s killed by signal %d\n", what, WTERMSIG(wstatus));
562 } else if (WIFSTOPPED(wstatus)) {
563 xerror("%s stopped by signal %d\n", what, WSTOPSIG(wstatus));
571 int e1, e2, wstatus;
597 ret = waitpid(s, &wstatus, 0);
600 e1 = rcheck(wstatus, "server");
601 ret = waitpid(c, &wstatus, 0);
604 e2 = rcheck(wstatus, "client");