Lines Matching refs:pid
41 pid_t pid; member
60 pid_t pid; in fdlog_pipe_spawn() local
71 pid = fdevent_fork_execve(args[0], args, NULL, rfd, devnull, devnull, -1); in fdlog_pipe_spawn()
73 if (pid > 0) { in fdlog_pipe_spawn()
81 return pid; in fdlog_pipe_spawn()
92 fdp->pid = fdlog_pipe_spawn(fdp->fdlog->fn, fdp->fd); in fdlog_pipe_restart()
94 return (fdp->pid > 0) ? 1 : -1; in fdlog_pipe_restart()
103 if (fdp->pid > 0) continue; in fdlog_pipes_restart()
110 fdlog_pipes_waitpid_cb (const pid_t pid) in fdlog_pipes_waitpid_cb() argument
114 if (fdp->pid != pid) continue; in fdlog_pipes_waitpid_cb()
116 fdp->pid = -1; in fdlog_pipes_waitpid_cb()
145 fdp->pid = -1; in fdlog_pipes_abandon_pids()
164 fdlog_pipe_init (const char * const fn, const int fds[2], const pid_t pid) in fdlog_pipe_init() argument
171 fdp->pid = pid; in fdlog_pipe_init()
190 pid_t pid = fdlog_pipe_spawn(fn, fds[0]); in fdlog_pipe_open() local
191 if (pid > 0) { in fdlog_pipe_open()
194 return fdlog_pipe_init(fn, fds, pid); in fdlog_pipe_open()