Lines Matching refs:pid
60 pid_t pid;
91 pid_t pid;
180 error = posix_spawn_pipe_np(&pid, &fd, cmd, *mode != 'r', &fact, &attr);
190 _insert_nolock(pid, myfd, node);
212 pid_t pid;
215 pid = _delete(fileno(ptr));
220 if (pid <= 0) {
231 * w/o waiting, and if that fails just call cleanup(pid).
236 if (waitpid(pid, &status, WNOHANG) == pid)
238 cleanup((void *)(uintptr_t)pid);
243 pthread_cleanup_push(cleanup, (void *)(uintptr_t)pid);
244 while (waitpid(pid, &status, 0) < 0) {
257 _insert_nolock(pid_t pid, int fd, node_t *new)
271 (void) waitpid(curr->pid, NULL, WNOHANG);
272 curr->pid = pid;
279 new->pid = pid;
293 _insert(pid_t pid, int fd)
301 _insert_nolock(pid, fd, node);
313 pid_t pid;
324 pid = curr->pid;
326 return (pid);