Lines Matching refs:pid
412 pid_t pid, int status) { in openpty_exited() argument
421 "openpty child", pid, status); in openpty_exited()
449 pid_t pid = -1; in libxl__openptys() local
465 pid = libxl__ev_child_fork(gc, &op->child, openpty_exited); in libxl__openptys()
466 if (pid == -1) { in libxl__openptys()
471 if (!pid) { in libxl__openptys()
541 if (kill(aes->child.pid, SIGKILL)) { in async_exec_timeout()
543 aes->what, (unsigned long)aes->child.pid); in async_exec_timeout()
551 pid_t pid, int status) in async_exec_done() argument
561 aes->what, pid, status); in async_exec_done()
575 pid_t pid; in libxl__async_exec_start() local
596 pid = libxl__ev_child_fork(gc, child, async_exec_done); in libxl__async_exec_start()
597 if (pid == -1) { in libxl__async_exec_start()
602 if (!pid) { in libxl__async_exec_start()
622 void libxl__kill(libxl__gc *gc, pid_t pid, int sig, const char *what) in libxl__kill() argument
624 int r = kill(pid, sig); in libxl__kill()
626 what, (unsigned long)pid, sig); in libxl__kill()
634 int ret, pid; in libxl__kill_xs_path() local
642 pid = atoi(xs_pid); in libxl__kill_xs_path()
644 ret = kill(pid, SIGHUP); in libxl__kill_xs_path()
652 LOGE(ERROR, "failed to kill %s [%d]", what, pid); in libxl__kill_xs_path()