Lines Matching refs:pid
46 int pid, fds[2], ret, n; in run_helper() local
74 pid = clone(helper_child, (void *) sp, CLONE_VM, &data); in run_helper()
75 if (pid < 0) { in run_helper()
91 ret = pid; in run_helper()
99 CATCH_EINTR(waitpid(pid, NULL, __WALL)); in run_helper()
117 int pid, status, err; in run_helper_thread() local
124 pid = clone(proc, (void *) sp, flags, arg); in run_helper_thread()
125 if (pid < 0) { in run_helper_thread()
132 CATCH_EINTR(pid = waitpid(pid, &status, __WALL)); in run_helper_thread()
133 if (pid < 0) { in run_helper_thread()
137 pid = err; in run_helper_thread()
145 return pid; in run_helper_thread()
148 int helper_wait(int pid) in helper_wait() argument
153 CATCH_EINTR(ret = waitpid(pid, &status, wflags)); in helper_wait()
156 "errno = %d\n", pid, errno); in helper_wait()
160 "status 0x%x\n", pid, status); in helper_wait()