Lines Matching refs:status

212 static pid_t checked_waitpid(libxl__egc *egc, pid_t want, int *status)  in checked_waitpid()  argument
216 pid_t got = waitpid(want, status, WNOHANG); in checked_waitpid()
452 int status) in childproc_reaped_ours() argument
457 ch->callback(egc, ch, pid, status); in childproc_reaped_ours()
460 static int childproc_reaped(libxl__egc *egc, pid_t pid, int status) in childproc_reaped() argument
473 childproc_reaped_ours(egc, ch, status); in childproc_reaped()
480 int libxl_childproc_reaped(libxl_ctx *ctx, pid_t pid, int status) in libxl_childproc_reaped() argument
486 int rc = childproc_reaped(egc, pid, status); in libxl_childproc_reaped()
497 int status; in childproc_checkall() local
501 got = checked_waitpid(egc, ch->pid, &status); in childproc_checkall()
514 status = 255<<8; /* no wait.h macro for this! */ in childproc_checkall()
515 assert(WIFEXITED(status)); in childproc_checkall()
516 assert(WEXITSTATUS(status)==255); in childproc_checkall()
517 assert(!WIFSIGNALED(status)); in childproc_checkall()
518 assert(!WIFSTOPPED(status)); in childproc_checkall()
520 childproc_reaped_ours(egc, ch, status); in childproc_checkall()
565 int status; in sigchld_selfpipe_handler() local
566 pid_t pid = checked_waitpid(egc, -1, &status); in sigchld_selfpipe_handler()
571 int rc = childproc_reaped(egc, pid, status); in sigchld_selfpipe_handler()
577 (pid, status, CTX->childproc_user); in sigchld_selfpipe_handler()
584 (unsigned long)pid, status, rc); in sigchld_selfpipe_handler()
593 "unknown child", (long)pid, status); in sigchld_selfpipe_handler()
685 pid_t, int status);
716 int status) in deregistered_child_callback() argument
723 pid, status); in deregistered_child_callback()