Searched refs:pstat (Results 1 – 1 of 1) sorted by relevance
248 int pstat; in pw_mkdb() local270 if (waitpid(pid, &pstat, 0) == -1) in pw_mkdb()272 if (WIFEXITED(pstat) && WEXITSTATUS(pstat) == 0) in pw_mkdb()289 int pstat; in pw_edit() local323 if (waitpid(editpid, &pstat, WUNTRACED) == -1) { in pw_edit()329 } else if (WIFSTOPPED(pstat)) { in pw_edit()330 raise(WSTOPSIG(pstat)); in pw_edit()331 } else if (WIFEXITED(pstat)) { in pw_edit()332 if (WEXITSTATUS(pstat) != 0) in pw_edit()333 errx(1, "\"%s\" exited with status %d", editor, WEXITSTATUS(pstat)); in pw_edit()