Lines Matching refs:pid
48 int pid, fds[2], ret, n; in run_helper() local
76 pid = clone(helper_child, (void *) sp, CLONE_VM, &data); in run_helper()
77 if (pid < 0) { in run_helper()
93 ret = pid; in run_helper()
101 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in run_helper()
123 int pid, status, err; in run_helper_thread() local
134 pid = clone(proc, (void *) sp, flags, arg); in run_helper_thread()
135 if (pid < 0) { in run_helper_thread()
142 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); in run_helper_thread()
143 if (pid < 0) { in run_helper_thread()
147 pid = err; in run_helper_thread()
155 return pid; in run_helper_thread()
158 int helper_wait(int pid) in helper_wait() argument
163 CATCH_EINTR(ret = waitpid(pid, &status, wflags)); in helper_wait()
166 "errno = %d\n", pid, errno); in helper_wait()
170 "status 0x%x\n", pid, status); in helper_wait()