Home
last modified time | relevance | path

Searched refs:child_pid (Results 1 – 25 of 26) sorted by relevance

12

/freebsd-9-stable/crypto/openssh/
Dsandbox-systrace.c77 pid_t child_pid; member
89 box->child_pid = 0; in ssh_sandbox_init()
106 ssh_sandbox_parent(struct ssh_sandbox *box, pid_t child_pid, in ssh_sandbox_parent() argument
114 debug3("%s: wait for child %ld", __func__, (long)child_pid); in ssh_sandbox_parent()
116 pid = waitpid(child_pid, &status, WUNTRACED); in ssh_sandbox_parent()
128 debug3("%s: child %ld stopped", __func__, (long)child_pid); in ssh_sandbox_parent()
129 box->child_pid = child_pid; in ssh_sandbox_parent()
140 if (ioctl(box->systrace_fd, STRIOCATTACH, &child_pid) == -1) in ssh_sandbox_parent()
142 box->systrace_fd, child_pid, strerror(errno)); in ssh_sandbox_parent()
153 policy.strp_pid = box->child_pid; in ssh_sandbox_parent()
[all …]
Dsandbox-rlimit.c41 pid_t child_pid; member
55 box->child_pid = 0; in ssh_sandbox_init()
92 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) in ssh_sandbox_parent_preauth() argument
94 box->child_pid = child_pid; in ssh_sandbox_parent_preauth()
Dsandbox-darwin.c39 pid_t child_pid; member
53 box->child_pid = 0; in ssh_sandbox_init()
93 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) in ssh_sandbox_parent_preauth() argument
95 box->child_pid = child_pid; in ssh_sandbox_parent_preauth()
Dsandbox-capsicum.c48 pid_t child_pid; member
63 box->child_pid = 0; in ssh_sandbox_init()
118 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) in ssh_sandbox_parent_preauth() argument
120 box->child_pid = child_pid; in ssh_sandbox_parent_preauth()
Dsandbox-seccomp-filter.c134 pid_t child_pid; member
148 box->child_pid = 0; in ssh_sandbox_init()
235 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) in ssh_sandbox_parent_preauth() argument
237 box->child_pid = child_pid; in ssh_sandbox_parent_preauth()
Dplatform.c66 platform_post_fork_parent(pid_t child_pid) in platform_post_fork_parent() argument
69 solaris_contract_post_fork_parent(child_pid); in platform_post_fork_parent()
Dplatform.h26 void platform_post_fork_parent(pid_t child_pid);
Dsandbox-null.c67 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) in ssh_sandbox_parent_preauth() argument
/freebsd-9-stable/tools/regression/netinet/tcpsockclosebeforeaccept/
Dtcpsockclosebeforeaccept.c169 pid_t child_pid, parent_pid; in main() local
175 child_pid = fork(); in main()
176 if (child_pid < 0) in main()
178 if (child_pid == 0) { in main()
179 child_pid = getpid(); in main()
183 tcp_client(child_pid, 0); in main()
184 (void)kill(child_pid, SIGTERM); in main()
189 child_pid = fork(); in main()
190 if (child_pid < 0) in main()
192 if (child_pid == 0) { in main()
[all …]
/freebsd-9-stable/tools/regression/netinet/tcpsocktimewait/
Dtcpsocktimewait.c113 pid_t child_pid, parent_pid; in main() local
159 child_pid = fork(); in main()
160 if (child_pid < 0) in main()
162 if (child_pid == 0) { in main()
163 child_pid = getpid(); in main()
164 tcp_server(child_pid, listen_fd); in main()
168 (void)kill(child_pid, SIGTERM); in main()
207 child_pid = fork(); in main()
208 if (child_pid < 0) in main()
210 if (child_pid == 0) { in main()
[all …]
/freebsd-9-stable/tools/regression/sysvshm/
Dshmtest.c63 pid_t child_pid; variable
110 child_pid = getpid();
150 switch ((child_pid = fork())) {
193 if (waitpid(child_pid, &cstatus, 0) != child_pid)
224 if (child_pid != 0 && sender_shmid != -1) { in cleanup()
/freebsd-9-stable/tools/regression/netinet/tcpdrop/
Dtcpdrop.c205 pid_t child_pid, parent_pid; in main() local
246 child_pid = fork(); in main()
247 if (child_pid < 0) in main()
249 if (child_pid == 0) { in main()
250 child_pid = getpid(); in main()
253 tcp_client(child_pid, port); in main()
/freebsd-9-stable/contrib/opie/
Dpopen.c100 static pid_t child_pid = -1; variable
141 switch (child_pid = fork()) {
196 if ((child_pid < 0) || (fileno(iop) != pipe_fd))
202 while ((pid = wait(&status)) != child_pid && (pid != -1));
205 child_pid = -1;
/freebsd-9-stable/tools/regression/sysvmsg/
Dmsgtest.c82 pid_t child_pid; variable
123 child_pid = getpid(); in main()
155 switch ((child_pid = fork())) { in main()
222 if (waitpid(child_pid, &cstatus, 0) != child_pid) in sigchld_handler()
253 if (child_pid != 0 && sender_msqid != -1) { in cleanup()
/freebsd-9-stable/contrib/tcp_wrappers/
Dshell_cmd.c42 int child_pid; local
50 switch (child_pid = fork()) {
58 while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid)
/freebsd-9-stable/usr.bin/su/
Dsu.c161 pid_t child_pid, child_pgrp, pid; in main() local
443 child_pid = fork(); in main()
444 switch (child_pid) { in main()
449 setpgid(child_pid, child_pid); in main()
451 tcsetpgrp(STDERR_FILENO, child_pid); in main()
454 while ((pid = waitpid(child_pid, &statusp, WUNTRACED)) != -1) { in main()
456 child_pgrp = getpgid(child_pid); in main()
461 child_pgrp = getpgid(child_pid); in main()
464 kill(child_pid, SIGCONT); in main()
/freebsd-9-stable/contrib/pf/pflogd/
Dprivsep.c53 static volatile pid_t child_pid = -1; variable
92 child_pid = fork(); in priv_init()
93 if (child_pid < 0) in priv_init()
96 if (!child_pid) { in priv_init()
299 if (child_pid != -1) in sig_pass_to_chld()
300 kill(child_pid, sig); in sig_pass_to_chld()
/freebsd-9-stable/tools/regression/sysvsem/
Dsemtest.c61 pid_t child_pid; variable
119 child_pid = getpid(); in main()
156 switch ((child_pid = fork())) { in main()
263 if (child_pid != 0 && sender_semid != -1) { in cleanup()
/freebsd-9-stable/contrib/groff/src/preproc/html/
Dpre-html.cpp1282 PID_T child_pid; in run_output_filter() local
1292 if ((child_pid = fork()) < 0) in run_output_filter()
1295 else if (child_pid == 0) { in run_output_filter()
1350 if (WAIT(&status, child_pid, _WAIT_CHILD) != child_pid) in run_output_filter()
1385 if ((child_pid = spawnvp(_P_NOWAIT, argv[0], argv)) < 0) { in run_output_filter()
1417 if (WAIT(&status, child_pid, _WAIT_CHILD) != child_pid) in run_output_filter()
/freebsd-9-stable/usr.bin/make/
Dproc.h48 pid_t child_pid; member
Djob.c525 if (pid == ps->child_pid) { in ProcWait()
1350 if ((ps.child_pid = vfork()) == -1) { in JobExec()
1354 } else if (ps.child_pid == 0) { in JobExec()
1368 job->pid = ps.child_pid; in JobExec()
2714 if ((ps.child_pid = vfork()) == -1) { in Cmd_Exec()
2718 } else if (ps.child_pid == 0) { in Cmd_Exec()
2994 if ((ps.child_pid = vfork()) == -1) { in Compat_RunCommand()
2997 } else if (ps.child_pid == 0) { in Compat_RunCommand()
/freebsd-9-stable/contrib/cvs/src/
Dbuffer.c1269 int child_pid; member
1275 stdio_buffer_initialize (fp, child_pid, input, memory) in stdio_buffer_initialize() argument
1277 int child_pid;
1284 bc->child_pid = child_pid;
1519 if (bc->child_pid)
1524 w = waitpid (bc->child_pid, (int *) 0, 0);
1532 error (0, errno, "waiting for process %d", bc->child_pid);
Dclient.c3699 make_bufs_from_fds (tofd, fromfd, child_pid, to_server, from_server, is_sock) in make_bufs_from_fds() argument
3702 int child_pid;
3751 *from_server = stdio_buffer_initialize (from_server_fp, child_pid, 1,
4031 int child_pid; local
4050 child_pid = piped_child (command, &tofd, &fromfd, 0);
4051 if (child_pid < 0)
4054 make_bufs_from_fds (tofd, fromfd, child_pid, to_server, from_server, 0);
4729 int child_pid; local
4782 child_pid = popenRW (rsh_argv, pipes);
4783 if (child_pid < 0)
[all …]
/freebsd-9-stable/usr.sbin/faithd/
Dfaithd.c356 pid_t child_pid; in play_service() local
440 child_pid = fork(); in play_service()
442 if (child_pid == 0) { in play_service()
453 if (child_pid == -1) in play_service()
/freebsd-9-stable/contrib/gdb/gdb/
Dtarget.h613 extern int inferior_has_forked (int pid, int *child_pid);
615 extern int inferior_has_vforked (int pid, int *child_pid);

12