Lines Matching refs:status

111                                    const char *what, pid_t pid, int status)  in libxl_report_child_exitstatus()  argument
114 if (WIFEXITED(status)) { in libxl_report_child_exitstatus()
115 int st = WEXITSTATUS(status); in libxl_report_child_exitstatus()
122 } else if (WIFSIGNALED(status)) { in libxl_report_child_exitstatus()
123 int sig = WTERMSIG(status); in libxl_report_child_exitstatus()
125 const char *coredump = WCOREDUMP(status) ? " (core dumped)" : ""; in libxl_report_child_exitstatus()
136 " wait status 0x%x", what, (unsigned long)pid, status); in libxl_report_child_exitstatus()
262 pid_t pid, int status);
282 int status, rc; in libxl__spawn_spawn() local
327 pid_t got = waitpid(child, &status, 0); in libxl__spawn_spawn()
336 r = (WIFEXITED(status) && WEXITSTATUS(status) <= 127 ? WEXITSTATUS(status) : in libxl__spawn_spawn()
337 WIFSIGNALED(status) && WTERMSIG(status) < 127 ? WTERMSIG(status)+128 : in libxl__spawn_spawn()
412 pid_t pid, int status) in spawn_middle_death() argument
419 ((WIFEXITED(status) && WEXITSTATUS(status)==0) || in spawn_middle_death()
420 (WIFSIGNALED(status) && WTERMSIG(status)==SIGKILL))) { in spawn_middle_death()
423 libxl_report_child_exitstatus(CTX, XTL_DEBUG, what, pid, status); in spawn_middle_death()
424 } else if (!WIFEXITED(status)) { in spawn_middle_death()
428 libxl_report_child_exitstatus(CTX, loglevel, what, pid, status); in spawn_middle_death()
431 if (!status) in spawn_middle_death()
435 else if (status <= 127) in spawn_middle_death()
437 ss->what, (unsigned long)pid, status); in spawn_middle_death()
438 else if (status < 255) { in spawn_middle_death()
439 int sig = status - 128; in spawn_middle_death()