Lines Matching refs:child_pid
77 pid_t child_pid;
89 box->child_pid = 0;
106 ssh_sandbox_parent(struct ssh_sandbox *box, pid_t child_pid,
114 debug3("%s: wait for child %ld", __func__, (long)child_pid);
116 pid = waitpid(child_pid, &status, WUNTRACED);
128 debug3("%s: child %ld stopped", __func__, (long)child_pid);
129 box->child_pid = child_pid;
140 if (ioctl(box->systrace_fd, STRIOCATTACH, &child_pid) == -1)
142 box->systrace_fd, child_pid, strerror(errno));
153 policy.strp_pid = box->child_pid;
179 debug3("%s: start child %ld", __func__, (long)child_pid);
180 if (kill(box->child_pid, SIGCONT) != 0)
181 fatal("%s: kill(%d, SIGCONT)", __func__, box->child_pid);
195 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid)
197 ssh_sandbox_parent(box, child_pid, preauth_policy);