Home
last modified time | relevance | path

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

123

/netbsd/external/mit/libuv/dist/test/
H A Dtest-fork.c99 pid_t child_pid; in TEST_IMPL() local
102 child_pid = fork(); in TEST_IMPL()
122 pid_t child_pid; in TEST_IMPL() local
134 child_pid = fork(); in TEST_IMPL()
160 pid_t child_pid; in TEST_IMPL() local
183 child_pid = fork(); in TEST_IMPL()
233 pid_t child_pid; in TEST_IMPL() local
282 pid_t child_pid; in TEST_IMPL() local
460 pid_t child_pid; in _do_fork_fs_events_child() local
551 pid_t child_pid; in TEST_IMPL() local
[all …]
/netbsd/external/gpl3/gdb/dist/gdb/nat/
H A Dlinux-ptrace.c271 int child_pid; in linux_fork_to_function() local
291 child_pid = fork (); in linux_fork_to_function()
293 if (child_pid == 0) in linux_fork_to_function()
297 if (child_pid == -1) in linux_fork_to_function()
300 return child_pid; in linux_fork_to_function()
344 int child_pid, ret, status; in linux_check_ptrace_features() local
358 else if (ret != child_pid) in linux_check_ptrace_features()
367 linux_test_for_tracefork (child_pid); in linux_check_ptrace_features()
369 linux_test_for_exitkill (child_pid); in linux_check_ptrace_features()
394 linux_test_for_tracefork (int child_pid) in linux_test_for_tracefork() argument
[all …]
/netbsd/external/gpl3/gdb.old/dist/gdb/nat/
H A Dlinux-ptrace.c271 int child_pid; in linux_fork_to_function() local
291 child_pid = fork (); in linux_fork_to_function()
293 if (child_pid == 0) in linux_fork_to_function()
297 if (child_pid == -1) in linux_fork_to_function()
300 return child_pid; in linux_fork_to_function()
344 int child_pid, ret, status; in linux_check_ptrace_features() local
358 else if (ret != child_pid) in linux_check_ptrace_features()
367 linux_test_for_tracefork (child_pid); in linux_check_ptrace_features()
369 linux_test_for_exitkill (child_pid); in linux_check_ptrace_features()
394 linux_test_for_tracefork (int child_pid) in linux_test_for_tracefork() argument
[all …]
/netbsd/external/gpl2/xcvs/dist/src/
H A Drsh-client.c48 int child_pid; in start_rsh_server() local
121 child_pid = popenRW (rsh_argv, pipes); in start_rsh_server()
122 if (child_pid < 0) in start_rsh_server()
126 make_bufs_from_fds (pipes[0], pipes[1], child_pid, to_server_p, in start_rsh_server()
145 int child_pid; in start_rsh_server() local
194 child_pid = piped_child (argv, &tofd, &fromfd, true); in start_rsh_server()
196 if (child_pid < 0) in start_rsh_server()
201 make_bufs_from_fds (tofd, fromfd, child_pid, root, to_server_p, in start_rsh_server()
H A Drelease.c59 setup_update_command (pid_t *child_pid) in setup_update_command() argument
85 *child_pid = run_piped (&tofd, &fromfd); in setup_update_command()
86 if (*child_pid < 0) in setup_update_command()
97 close_update_command (FILE *fp, pid_t child_pid) in close_update_command() argument
103 w = waitpid (child_pid, &status, 0); in close_update_command()
106 error (1, errno, "waiting for process %d", child_pid); in close_update_command()
240 pid_t child_pid; in release() local
248 fp = setup_update_command (&child_pid); in release()
271 status = close_update_command (fp, child_pid); in release()
/netbsd/crypto/external/bsd/openssh/dist/
H A Dsandbox-pledge.c41 pid_t child_pid; member
51 box->child_pid = 0; in ssh_sandbox_init()
71 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) in ssh_sandbox_parent_preauth() argument
73 box->child_pid = child_pid; in ssh_sandbox_parent_preauth()
H A Dsandbox-rlimit.c38 pid_t child_pid; member
52 box->child_pid = 0; in ssh_sandbox_init()
83 ssh_sandbox_parent_preauth(struct ssh_sandbox *box, pid_t child_pid) in ssh_sandbox_parent_preauth() argument
85 box->child_pid = child_pid; in ssh_sandbox_parent_preauth()
/netbsd/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Dattach-non-pgrp-leader.exp50 set child_pid [get_integer_valueof "child_pid" -1]
51 if {$child_pid == -1} {
63 gdb_test "attach $child_pid" \
64 "Attaching to program.*, process $child_pid.*" \
71 "Detaching from program: .*process $child_pid\r\n\\\[Inferior $decimal \\(.*\\) detached\\\]"
H A Dinterrupt-daemon-attach.exp56 set child_pid [get_integer_valueof "child_pid" -1]
57 if {$child_pid == -1} {
73 gdb_test "attach $child_pid" \
74 "Attaching to program.*, process $child_pid.*" \
87 remote_exec host "kill -9 $child_pid"
H A Dattach-non-pgrp-leader.c22 pid_t child_pid; variable
34 child_pid = fork (); in main()
35 if (child_pid == -1) in main()
H A Dinterrupt-daemon-attach.c22 pid_t child_pid; variable
35 child_pid = fork (); in main()
37 switch (child_pid) in main()
/netbsd/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Dattach-non-pgrp-leader.exp50 set child_pid [get_integer_valueof "child_pid" -1]
51 if {$child_pid == -1} {
63 gdb_test "attach $child_pid" \
64 "Attaching to program.*, process $child_pid.*" \
71 "Detaching from program: .*process $child_pid\r\n\\\[Inferior $decimal \\(.*\\) detached\\\]"
H A Dinterrupt-daemon-attach.exp56 set child_pid [get_integer_valueof "child_pid" -1]
57 if {$child_pid == -1} {
73 gdb_test "attach $child_pid" \
74 "Attaching to program.*, process $child_pid.*" \
87 remote_exec host "kill -9 $child_pid"
H A Dattach-non-pgrp-leader.c22 pid_t child_pid; variable
34 child_pid = fork (); in main()
35 if (child_pid == -1) in main()
H A Dinterrupt-daemon-attach.c22 pid_t child_pid; variable
35 child_pid = fork (); in main()
37 switch (child_pid) in main()
/netbsd/sys/compat/common/
H A Dkern_exit_43.c89 int error, status, child_pid = WAIT_ANY; in compat_43_sys_wait() local
93 error = do_sys_wait(&child_pid, &status, 0, NULL); in compat_43_sys_wait()
95 error = do_sys_wait(&child_pid, &status, in compat_43_sys_wait()
99 error = do_sys_wait(&child_pid, &status, 0, NULL); in compat_43_sys_wait()
101 retval[0] = child_pid; in compat_43_sys_wait()
/netbsd/dist/pf/sbin/pflogd/
H A Dprivsep.c58 static volatile pid_t child_pid = -1; variable
93 child_pid = fork(); in priv_init()
94 if (child_pid < 0) in priv_init()
97 if (!child_pid) { in priv_init()
310 if (child_pid != -1) in sig_pass_to_chld()
311 kill(child_pid, sig); in sig_pass_to_chld()
/netbsd/lib/libwrap/
H A Dshell_cmd.c48 int child_pid; in shell_cmd() local
56 switch (child_pid = fork()) { in shell_cmd()
64 while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid) in shell_cmd()
/netbsd/external/gpl3/gcc/dist/libphobos/testsuite/libphobos.gc/
H A Dsigmaskgc.d29 auto child_pid = fork(); in main() local
30 assert(child_pid >= 0); in main()
31 if (child_pid == 0) in main()
/netbsd/external/apache2/llvm/dist/llvm/utils/unittest/googletest/src/
H A Dgtest-death-test.cc1081 void set_child_pid(pid_t child_pid) { child_pid_ = child_pid; } in set_child_pid() argument
1139 const pid_t child_pid = fork(); in AssumeRole() local
1140 GTEST_DEATH_TEST_CHECK_(child_pid != -1); in AssumeRole()
1141 set_child_pid(child_pid); in AssumeRole()
1142 if (child_pid == 0) { in AssumeRole()
1315 pid_t child_pid = -1; in ExecDeathTestSpawnChild() local
1342 child_pid = in ExecDeathTestSpawnChild()
1395 if (use_fork && (child_pid = fork()) == 0) { in ExecDeathTestSpawnChild()
1405 GTEST_DEATH_TEST_CHECK_(child_pid != -1); in ExecDeathTestSpawnChild()
1406 return child_pid; in ExecDeathTestSpawnChild()
[all …]
/netbsd/usr.sbin/rpc.pcnfsd/
H A Dpcnfsd_misc.c337 static int child_pid; variable
355 kill(child_pid, SIGKILL); in myhandler()
456 child_pid = pid; in su_popen()
471 if (child_pid == -1) in su_pclose()
473 while ((pid = wait(&status)) != child_pid && pid != -1); in su_pclose()
/netbsd/external/gpl3/gcc/dist/libcc1/
H A Dgdbctx.hh216 pid_t child_pid = fork (); in fork_exec() local
218 if (child_pid == -1) in fork_exec()
227 if (child_pid == 0) in fork_exec()
257 if (waitpid (child_pid, &status, 0) == -1) in fork_exec()
/netbsd/tests/kernel/
H A Dt_sysv.c89 pid_t child_pid; variable
237 switch ((child_pid = fork())) { in ATF_TC_BODY()
282 ATF_REQUIRE_EQ_MSG(wait_result, child_pid, "wait returned %d (%s)", in ATF_TC_BODY()
462 switch ((child_pid = fork())) { in ATF_TC_BODY()
668 switch ((child_pid = fork())) { in ATF_TC_BODY()
685 ATF_REQUIRE_EQ_MSG(wait_result, child_pid, "wait returned %d (%s)", in ATF_TC_BODY()
/netbsd/usr.sbin/lpr/lpd/
H A Dprintjob.c548 int n, fi, fo, child_pid, p[2], stopped = 0, nofile; in print() local
717 while ((child_pid = in print()
718 wait3(&status, WUNTRACED, 0)) > 0 && child_pid != ofilter) in print()
753 while ((child_pid = wait(&status)) > 0 && child_pid != child) in print()
775 printer, format, (int)child_pid, WTERMSIG(status)); in print()
1206 int i, child_pid; in dofork() local
1210 if ((child_pid = fork()) < 0) { in dofork()
1217 if (child_pid == 0) { in dofork()
1229 return (child_pid); in dofork()
/netbsd/external/gpl2/groff/dist/src/preproc/html/
H A Dpre-html.cpp1284 PID_T child_pid; in run_output_filter() local
1294 if ((child_pid = fork()) < 0) in run_output_filter()
1297 else if (child_pid == 0) { in run_output_filter()
1352 if (WAIT(&status, child_pid, _WAIT_CHILD) != child_pid) in run_output_filter()
1387 if ((child_pid = spawnvp(_P_NOWAIT, argv[0], argv)) < 0) { in run_output_filter()
1419 if (WAIT(&status, child_pid, _WAIT_CHILD) != child_pid) in run_output_filter()

123