Lines Matching refs:pid
41 /* Returns either the pid of the child process we run or -E* on failure. */
46 int pid, fds[2], ret, n;
74 pid = clone(helper_child, (void *) sp, CLONE_VM, &data);
75 if (pid < 0) {
91 ret = pid;
99 CATCH_EINTR(waitpid(pid, NULL, __WALL));
117 int pid, status, err;
124 pid = clone(proc, (void *) sp, flags, arg);
125 if (pid < 0) {
132 CATCH_EINTR(pid = waitpid(pid, &status, __WALL));
133 if (pid < 0) {
137 pid = err;
145 return pid;
148 int helper_wait(int pid)
153 CATCH_EINTR(ret = waitpid(pid, &status, wflags));
156 "errno = %d\n", pid, errno);
160 "status 0x%x\n", pid, status);