Lines Matching refs:wstatus
166 static pid_t fwexec(const char *const *argv, int *wstatus);
2120 int wstatus;
2131 (void)os_assumes_zero(waitpid(p, &wstatus, 0));
2132 if (WIFEXITED(wstatus)) {
2133 if (WEXITSTATUS(wstatus) == EXIT_SUCCESS) {
2136 launchctl_log(LOG_NOTICE, "single user mode: exit status: %d", WEXITSTATUS(wstatus));
2139 launchctl_log(LOG_NOTICE, "single user mode shell: %s", strsignal(WTERMSIG(wstatus)));
2182 int wstatus;
2193 (void)os_assumes_zero(waitpid(p, &wstatus, 0));
2194 if (WIFEXITED(wstatus)) {
2195 if (WEXITSTATUS(wstatus) == EXIT_SUCCESS) {
2198 launchctl_log(LOG_NOTICE, "crash debug mode: exit status: %d", WEXITSTATUS(wstatus));
2201 launchctl_log(LOG_NOTICE, "crash debug mode shell: %s", strsignal(WTERMSIG(wstatus)));
2911 int wstatus = (int)launch_data_get_integer(stato);
2912 if (WIFEXITED(wstatus)) {
2913 fprintf(stdout, "-\t%d\t%s\n", WEXITSTATUS(wstatus), label);
2914 } else if (WIFSIGNALED(wstatus)) {
2915 fprintf(stdout, "-\t-%d\t%s\n", WTERMSIG(wstatus), label);
3965 fwexec(const char *const *argv, int *wstatus)
3978 if (waitpid(p, wstatus ? wstatus : &wstatus2, 0) == -1) {
3982 if (wstatus) {
4502 int wstatus;
4521 if (posix_assumes_zero(p = fwexec(kextcache_tool, &wstatus)) == -1) {
4525 if (WIFEXITED(wstatus) && WEXITSTATUS(wstatus) == EX_OSFILE) {