| /freebsd-9-stable/crypto/openssh/ |
| D | sandbox-systrace.c | 77 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 …]
|
| D | sandbox-rlimit.c | 41 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()
|
| D | sandbox-darwin.c | 39 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()
|
| D | sandbox-capsicum.c | 48 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()
|
| D | sandbox-seccomp-filter.c | 134 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()
|
| D | platform.c | 66 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()
|
| D | platform.h | 26 void platform_post_fork_parent(pid_t child_pid);
|
| D | sandbox-null.c | 67 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/ |
| D | tcpsockclosebeforeaccept.c | 169 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/ |
| D | tcpsocktimewait.c | 113 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/ |
| D | shmtest.c | 63 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/ |
| D | tcpdrop.c | 205 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/ |
| D | popen.c | 100 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/ |
| D | msgtest.c | 82 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/ |
| D | shell_cmd.c | 42 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/ |
| D | su.c | 161 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/ |
| D | privsep.c | 53 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/ |
| D | semtest.c | 61 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/ |
| D | pre-html.cpp | 1282 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/ |
| D | proc.h | 48 pid_t child_pid; member
|
| D | job.c | 525 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/ |
| D | buffer.c | 1269 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);
|
| D | client.c | 3699 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/ |
| D | faithd.c | 356 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/ |
| D | target.h | 613 extern int inferior_has_forked (int pid, int *child_pid); 615 extern int inferior_has_vforked (int pid, int *child_pid);
|