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

12

/freebsd-9.3-release/contrib/tcp_wrappers/
H A Dshell_cmd.c39 int child_pid; local
47 switch (child_pid = fork()) {
55 while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid)
/freebsd-9.3-release/crypto/openssh/
H A Dsandbox-systrace.c77 pid_t child_pid; member in struct:ssh_sandbox
89 box->child_pid = 0;
106 ssh_sandbox_parent(struct ssh_sandbox *box, pid_t child_pid, argument
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, strerro
195 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
[all...]
H A Dsandbox-darwin.c39 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 Dsandbox-rlimit.c41 pid_t child_pid; member in struct:ssh_sandbox
55 box->child_pid = 0;
92 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
94 box->child_pid = child_pid;
H A Dplatform.h26 void platform_post_fork_parent(pid_t child_pid);
H A Dsandbox-capsicum.c48 pid_t child_pid; member in struct:ssh_sandbox
63 box->child_pid = 0;
118 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
120 box->child_pid = child_pid;
H A Dsandbox-null.c67 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
H A Dplatform.c66 platform_post_fork_parent(pid_t child_pid) argument
69 solaris_contract_post_fork_parent(child_pid);
H A Dsandbox-seccomp-filter.c134 pid_t child_pid; member in struct:ssh_sandbox
148 box->child_pid = 0;
235 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
237 box->child_pid = child_pid;
/freebsd-9.3-release/usr.bin/make/
H A Dproc.h48 pid_t child_pid; member in struct:ProcStuff
H A Djob.c525 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-9.3-release/tools/regression/netinet/tcpsockclosebeforeaccept/
H A Dtcpsockclosebeforeaccept.c169 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-9.3-release/tools/regression/netinet/tcpsocktimewait/
H A Dtcpsocktimewait.c113 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-9.3-release/contrib/opie/
H A 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.3-release/tools/regression/sysvshm/
H A Dshmtest.c63 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-9.3-release/tools/regression/sysvsem/
H A Dsemtest.c61 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-9.3-release/contrib/pf/pflogd/
H A Dprivsep.c53 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-9.3-release/tools/regression/netinet/tcpdrop/
H A Dtcpdrop.c205 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-9.3-release/tools/regression/sysvmsg/
H A Dmsgtest.c82 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-9.3-release/usr.bin/su/
H A Dsu.c161 pid_t child_pid, child_pgrp, pid; local
443 child_pid = fork();
444 switch (child_pid) {
449 setpgid(child_pid, child_pid);
451 tcsetpgrp(STDERR_FILENO, child_pid);
454 while ((pid = waitpid(child_pid, &statusp, WUNTRACED)) != -1) {
456 child_pgrp = getpgid(child_pid);
461 child_pgrp = getpgid(child_pid);
464 kill(child_pid, SIGCON
[all...]
/freebsd-9.3-release/contrib/groff/src/preproc/html/
H A Dpre-html.cpp1282 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-9.3-release/contrib/cvs/src/
H A Dbuffer.c1269 int child_pid; member in struct:stdio_buffer_closure
1275 stdio_buffer_initialize (fp, child_pid, input, memory)
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);
H A Dclient.c3717 make_bufs_from_fds (tofd, fromfd, child_pid, to_server, from_server, is_sock)
3720 int child_pid;
3757 * child_pid in there. In theory, it should be stored in both
3769 *from_server = stdio_buffer_initialize (from_server_fp, child_pid, 1,
4049 int child_pid;
4068 child_pid = piped_child (command, &tofd, &fromfd, 0);
4069 if (child_pid < 0)
4072 make_bufs_from_fds (tofd, fromfd, child_pid, to_server, from_server, 0);
4747 int child_pid;
4800 child_pid
4031 int child_pid; local
4729 int child_pid; local
4807 int child_pid; local
[all...]
/freebsd-9.3-release/contrib/gdb/gdb/
H A Dtarget.h616 extern int inferior_has_forked (int pid, int *child_pid);
618 extern int inferior_has_vforked (int pid, int *child_pid);
/freebsd-9.3-release/usr.sbin/faithd/
H A Dfaithd.c356 pid_t child_pid; local
440 child_pid = fork();
442 if (child_pid == 0) {
453 if (child_pid == -1)

Completed in 281 milliseconds

12