Lines Matching refs:pid

454     pid_t pid = ch->pid;  in childproc_reaped_ours()  local
456 ch->pid = -1; in childproc_reaped_ours()
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
466 if (ch->pid == pid) 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()
501 got = checked_waitpid(egc, ch->pid, &status); in childproc_checkall()
566 pid_t pid = checked_waitpid(egc, -1, &status); in sigchld_selfpipe_handler() local
568 if (pid == 0 || pid == -1 /* ECHILD */) 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()
606 pid_t pid = in libxl__ev_child_fork() local
610 if (pid == -1) { in libxl__ev_child_fork()
616 if (!pid) { in libxl__ev_child_fork()
626 ch->pid = pid; in libxl__ev_child_fork()
629 rc = pid; in libxl__ev_child_fork()
695 pid_t pid = ch->pid; in libxl__ev_child_kill_deregister() local
699 new_ch->ch.pid = pid; in libxl__ev_child_kill_deregister()
705 ch->pid = -1; in libxl__ev_child_kill_deregister()
706 int r = kill(pid, sig); in libxl__ev_child_kill_deregister()
710 (unsigned long)pid, sig); in libxl__ev_child_kill_deregister()
715 pid_t pid, in deregistered_child_callback() argument
723 pid, status); in deregistered_child_callback()