Lines Matching refs:pid
42 /* Returns either the pid of the child process we run or -E* on failure. */
47 int pid, fds[2], ret, n;
75 pid = clone(helper_child, (void *) sp, CLONE_VM, &data);
76 if (pid < 0) {
92 ret = pid;
100 CATCH_EINTR(waitpid(pid, NULL, __WALL));
122 int pid, status, err;
129 pid = clone(proc, (void *) sp, flags, arg);
130 if (pid < 0) {
137 CATCH_EINTR(pid = waitpid(pid, &status, __WALL));
138 if (pid < 0) {
142 pid = err;
150 return pid;
153 int helper_wait(int pid)
158 CATCH_EINTR(ret = waitpid(pid, &status, wflags));
161 "errno = %d\n", pid, errno);
165 "status 0x%x\n", pid, status);