/freebsd-10.0-release/contrib/tcp_wrappers/ |
H A D | shell_cmd.c | 39 int child_pid; local 47 switch (child_pid = fork()) { 55 while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid)
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | sandbox-systrace.c | 76 pid_t child_pid; member in struct:ssh_sandbox 88 box->child_pid = 0; 105 ssh_sandbox_parent(struct ssh_sandbox *box, pid_t child_pid, argument 113 debug3("%s: wait for child %ld", __func__, (long)child_pid); 115 pid = waitpid(child_pid, &status, WUNTRACED); 127 debug3("%s: child %ld stopped", __func__, (long)child_pid); 128 box->child_pid = child_pid; 139 if (ioctl(box->systrace_fd, STRIOCATTACH, &child_pid) == -1) 141 box->systrace_fd, child_pid, strerro 194 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument [all...] |
H A D | platform.h | 25 void platform_post_fork_parent(pid_t child_pid);
|
H A D | sandbox-darwin.c | 39 pid_t child_pid; member in struct:ssh_sandbox 53 box->child_pid = 0; 93 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument 95 box->child_pid = child_pid;
|
H A D | sandbox-rlimit.c | 41 pid_t child_pid; member in struct:ssh_sandbox 55 box->child_pid = 0; 90 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument 92 box->child_pid = child_pid;
|
H A D | sandbox-null.c | 67 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
|
H A D | platform.c | 58 platform_post_fork_parent(pid_t child_pid) argument 61 solaris_contract_post_fork_parent(child_pid);
|
H A D | sandbox-seccomp-filter.c | 131 pid_t child_pid; member in struct:ssh_sandbox 145 box->child_pid = 0; 232 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument 234 box->child_pid = child_pid;
|
/freebsd-10.0-release/usr.bin/make/ |
H A D | proc.h | 48 pid_t child_pid; member in struct:ProcStuff
|
H A D | job.c | 525 if (pid == ps->child_pid) { 1350 if ((ps.child_pid = vfork()) == -1) { 1354 } else if (ps.child_pid == 0) { 1368 job->pid = ps.child_pid; 2714 if ((ps.child_pid = vfork()) == -1) { 2718 } else if (ps.child_pid == 0) { 2994 if ((ps.child_pid = vfork()) == -1) { 2997 } else if (ps.child_pid == 0) {
|
/freebsd-10.0-release/tools/regression/netinet/tcpsockclosebeforeaccept/ |
H A D | tcpsockclosebeforeaccept.c | 169 pid_t child_pid, parent_pid; local 175 child_pid = fork(); 176 if (child_pid < 0) 178 if (child_pid == 0) { 179 child_pid = getpid(); 183 tcp_client(child_pid, 0); 184 (void)kill(child_pid, SIGTERM); 189 child_pid = fork(); 190 if (child_pid < 0) 192 if (child_pid [all...] |
/freebsd-10.0-release/tools/regression/netinet/tcpsocktimewait/ |
H A D | tcpsocktimewait.c | 113 pid_t child_pid, parent_pid; local 159 child_pid = fork(); 160 if (child_pid < 0) 162 if (child_pid == 0) { 163 child_pid = getpid(); 164 tcp_server(child_pid, listen_fd); 168 (void)kill(child_pid, SIGTERM); 207 child_pid = fork(); 208 if (child_pid < 0) 210 if (child_pid [all...] |
/freebsd-10.0-release/contrib/opie/ |
H A 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-10.0-release/tools/regression/sysvshm/ |
H A D | shmtest.c | 63 pid_t child_pid; variable 107 * Initialize child_pid to ourselves to that the cleanup function 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) {
|
/freebsd-10.0-release/tools/regression/sysvsem/ |
H A D | semtest.c | 61 pid_t child_pid; variable 116 * Initialize child_pid to ourselves to that the cleanup function 119 child_pid = getpid(); 156 switch ((child_pid = fork())) { 263 if (child_pid != 0 && sender_semid != -1) {
|
/freebsd-10.0-release/contrib/pf/pflogd/ |
H A D | privsep.c | 53 static volatile pid_t child_pid = -1; variable 92 child_pid = fork(); 93 if (child_pid < 0) 96 if (!child_pid) { 299 if (child_pid != -1) 300 kill(child_pid, sig);
|
/freebsd-10.0-release/tools/regression/netinet/tcpdrop/ |
H A D | tcpdrop.c | 205 pid_t child_pid, parent_pid; local 246 child_pid = fork(); 247 if (child_pid < 0) 249 if (child_pid == 0) { 250 child_pid = getpid(); 253 tcp_client(child_pid, port);
|
/freebsd-10.0-release/tools/regression/sysvmsg/ |
H A D | msgtest.c | 82 pid_t child_pid; variable 120 * Initialize child_pid to ourselves to that the cleanup function 123 child_pid = getpid(); 155 switch ((child_pid = fork())) { 222 if (waitpid(child_pid, &cstatus, 0) != child_pid) 253 if (child_pid != 0 && sender_msqid != -1) {
|
/freebsd-10.0-release/usr.bin/su/ |
H A D | su.c | 161 pid_t child_pid, child_pgrp, pid; local 445 child_pid = fork(); 446 switch (child_pid) { 451 setpgid(child_pid, child_pid); 453 tcsetpgrp(STDERR_FILENO, child_pid); 456 while ((pid = waitpid(child_pid, &statusp, WUNTRACED)) != -1) { 458 child_pgrp = getpgid(child_pid); 463 child_pgrp = getpgid(child_pid); 466 kill(child_pid, SIGCON [all...] |
/freebsd-10.0-release/contrib/groff/src/preproc/html/ |
H A D | pre-html.cpp | 1282 PID_T child_pid; local 1292 if ((child_pid = fork()) < 0) 1295 else if (child_pid == 0) { 1350 if (WAIT(&status, child_pid, _WAIT_CHILD) != child_pid) 1385 if ((child_pid = spawnvp(_P_NOWAIT, argv[0], argv)) < 0) { 1417 if (WAIT(&status, child_pid, _WAIT_CHILD) != child_pid)
|
/freebsd-10.0-release/contrib/gdb/gdb/ |
H A D | target.h | 616 extern int inferior_has_forked (int pid, int *child_pid); 618 extern int inferior_has_vforked (int pid, int *child_pid);
|
H A D | infrun.c | 334 int child_pid; member in struct:__anon1269::__anon1270 1610 pending_follow.fork_event.child_pid = ecs->ws.value.related_pid; 3933 inferior_has_forked (int pid, int *child_pid) 3946 *child_pid = last.value.related_pid; 3951 inferior_has_vforked (int pid, int *child_pid) 3964 *child_pid = last.value.related_pid; 3925 inferior_has_forked(int pid, int *child_pid) argument 3943 inferior_has_vforked(int pid, int *child_pid) argument
|
/freebsd-10.0-release/contrib/atf/atf-c/detail/ |
H A D | process_test.c | 701 ATF_TC(child_pid); variable 702 ATF_TC_HEAD(child_pid, tc) 707 ATF_TC_BODY(child_pid, tc) 1122 ATF_TP_ADD_TC(tp, child_pid);
|
/freebsd-10.0-release/usr.sbin/faithd/ |
H A D | faithd.c | 356 pid_t child_pid; local 440 child_pid = fork(); 442 if (child_pid == 0) { 453 if (child_pid == -1)
|
/freebsd-10.0-release/contrib/atf/atf-run/ |
H A D | test-program.cpp | 754 const pid_t child_pid = child.pid(); local 767 child_timer timeout_timer(timeout, child_pid, terminate_poll); 775 ::killpg(child_pid, SIGKILL);
|