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

12

/freebsd-12-stable/crypto/openssh/
H A Dsandbox-pledge.c41 pid_t child_pid; member in struct:ssh_sandbox
51 box->child_pid = 0;
71 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
73 box->child_pid = child_pid;
H A Dsandbox-darwin.c40 pid_t child_pid; member in struct:ssh_sandbox
54 box->child_pid = 0;
94 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
96 box->child_pid = child_pid;
H A Dsandbox-rlimit.c40 pid_t child_pid; member in struct:ssh_sandbox
54 box->child_pid = 0;
91 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
93 box->child_pid = child_pid;
H A Dplatform.h24 void platform_post_fork_parent(pid_t child_pid);
H A Dsandbox-systrace.c96 pid_t child_pid; member in struct:ssh_sandbox
108 box->child_pid = 0;
125 ssh_sandbox_parent(struct ssh_sandbox *box, pid_t child_pid, argument
133 debug3("%s: wait for child %ld", __func__, (long)child_pid);
135 pid = waitpid(child_pid, &status, WUNTRACED);
147 debug3("%s: child %ld stopped", __func__, (long)child_pid);
148 box->child_pid = child_pid;
159 if (ioctl(box->systrace_fd, STRIOCATTACH, &child_pid) == -1)
161 box->systrace_fd, child_pid, strerro
214 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
[all...]
H A Dsandbox-capsicum.c49 pid_t child_pid; member in struct:ssh_sandbox
64 box->child_pid = 0;
121 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
123 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.c62 platform_post_fork_parent(pid_t child_pid) argument
65 solaris_contract_post_fork_parent(child_pid);
H A Dsandbox-seccomp-filter.c273 pid_t child_pid; member in struct:ssh_sandbox
287 box->child_pid = 0;
374 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
376 box->child_pid = child_pid;
H A Dsandbox-solaris.c109 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) argument
/freebsd-12-stable/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-12-stable/contrib/tcp_wrappers/
H A 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-12-stable/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-12-stable/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-12-stable/tools/regression/sysvshm/
H A Dshmtest.c62 static pid_t child_pid; variable
102 * Initialize child_pid to ourselves to that the cleanup function
105 child_pid = getpid();
145 switch ((child_pid = fork())) {
186 if (waitpid(child_pid, &cstatus, 0) != child_pid)
217 if (child_pid != 0 && sender_shmid != -1) {
/freebsd-12-stable/tests/sys/cddl/zfs/tests/online_offline/
H A Donline_offline_001_pos.ksh61 typeset child_pid=""
/freebsd-12-stable/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-12-stable/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-12-stable/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-12-stable/usr.bin/su/
H A Dsu.c163 pid_t child_pid, child_pgrp, pid; local
447 child_pid = fork();
448 switch (child_pid) {
453 setpgid(child_pid, child_pid);
455 tcsetpgrp(STDERR_FILENO, child_pid);
458 while ((pid = waitpid(child_pid, &statusp, WUNTRACED)) != -1) {
460 child_pgrp = getpgid(child_pid);
465 child_pgrp = getpgid(child_pid);
468 kill(child_pid, SIGCON
[all...]
/freebsd-12-stable/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();
165 switch ((child_pid = fork())) {
272 if (child_pid != 0 && sender_semid != -1) {
/freebsd-12-stable/contrib/googletest/googletest/src/
H A Dgtest-death-test.cc1009 void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; } argument
1067 const pid_t child_pid = fork(); local
1068 GTEST_DEATH_TEST_CHECK_(child_pid != -1);
1069 set_child_pid(child_pid);
1070 if (child_pid == 0) {
1238 pid_t child_pid = -1; local
1265 child_pid = spawn(args.argv[0], 0, NULL, &inherit, args.argv, GetEnviron());
1308 child_pid = clone(&ExecDeathTestChildMain, stack_top, SIGCHLD, &args);
1316 if (use_fork && (child_pid
1372 const pid_t child_pid = ExecDeathTestSpawnChild(args.Argv(), pipe_fd[0]); local
[all...]
/freebsd-12-stable/tests/sys/cddl/zfs/tests/hotspare/
H A Dhotspare_onoffline_004_neg.ksh155 typeset child_pid=""
/freebsd-12-stable/contrib/netbsd-tests/kernel/
H A Dt_sysv.c92 pid_t child_pid; variable
271 switch ((child_pid = fork())) {
512 switch ((child_pid = fork())) {
740 switch ((child_pid = fork())) {
/freebsd-12-stable/contrib/googletest/googletest/test/
H A Dgoogletest-death-test-test.cc221 pid_t child_pid = fork(); local
222 if (child_pid == 0) {
226 waitpid(child_pid, &status, 0);
236 pid_t child_pid = fork(); local
237 if (child_pid == 0) {
242 waitpid(child_pid, &status, 0);

Completed in 241 milliseconds

12