Lines Matching refs:pid
47 int pid, fds[2], ret, n; in run_helper() local
75 pid = clone(helper_child, (void *) sp, CLONE_VM, &data); in run_helper()
76 if (pid < 0) { in run_helper()
92 ret = pid; in run_helper()
100 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in run_helper()
122 int pid, status, err; in run_helper_thread() local
129 pid = clone(proc, (void *) sp, flags, arg); in run_helper_thread()
130 if (pid < 0) { in run_helper_thread()
137 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); in run_helper_thread()
138 if (pid < 0) { in run_helper_thread()
142 pid = err; in run_helper_thread()
150 return pid; in run_helper_thread()
153 int helper_wait(int pid) in helper_wait() argument
158 CATCH_EINTR(ret = waitpid(pid, &status, wflags)); in helper_wait()
161 "errno = %d\n", pid, errno); in helper_wait()
165 "status 0x%x\n", pid, status); in helper_wait()