Lines Matching refs:pid
256 assert(!ch->pid); in xl_fork()
260 ch->pid = fork(); in xl_fork()
261 if (ch->pid == -1) { in xl_fork()
266 if (!ch->pid) { in xl_fork()
269 children[i].pid = 0; in xl_fork()
272 return ch->pid; in xl_fork()
278 pid_t got = ch->pid; in xl_waitpid()
282 ch->pid = 0; in xl_waitpid()
286 got = waitpid(ch->pid, status, flags); in xl_waitpid()
289 assert(got == ch->pid); in xl_waitpid()
290 ch->pid = 0; in xl_waitpid()
299 return ch->pid; in xl_child_pid()
303 xlchildnum child, pid_t pid, int status) in xl_report_child_exitstatus() argument
306 pid, status); in xl_report_child_exitstatus()
315 if (ch->pid == got) { in xl_reaped_callback()