| /openbsd/src/gnu/llvm/lldb/packages/Python/lldbsuite/test/tools/lldb-server/ |
| D | fork_testbase.py | 50 parent_pid, parent_tid, child_pid, child_tid = ( 55 "read packet: $D;{}#00".format(child_pid), 61 "read packet: $Hgp{}.{}#00".format(child_pid, child_tid), 71 parent_pid, parent_tid, child_pid, child_tid = ( 76 "read packet: $Hgp{}.{}#00".format(child_pid, child_tid), 78 "read packet: $Hcp{}.{}#00".format(child_pid, child_tid), 86 "read packet: $Hgp{}.{}#00".format(child_pid, child_tid), 95 "send packet: %Stop:W00;process:{}#00".format(child_pid), 101 "send packet: $W00;process:{}#00".format(child_pid), 106 parent_pid, parent_tid, child_pid, child_tid = ( [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/Process/Linux/ |
| D | SingleStepCheck.cpp | 69 ::pid_t child_pid = fork(); in WorkaroundNeeded() 70 if (child_pid == -1) { in WorkaroundNeeded() 74 if (child_pid == 0) in WorkaroundNeeded() 77 ChildDeleter child_deleter{child_pid}; in WorkaroundNeeded() 79 if (sched_getaffinity(child_pid, sizeof available_cpus, &available_cpus) == in WorkaroundNeeded() 88 child_pid, &status, __WALL); in WorkaroundNeeded() 89 if (wpid != child_pid || !WIFSTOPPED(status)) { in WorkaroundNeeded() 103 if (sched_setaffinity(child_pid, sizeof cpus, &cpus) == -1) { in WorkaroundNeeded() 111 NativeProcessLinux::PtraceWrapper(PTRACE_SINGLESTEP, child_pid); in WorkaroundNeeded() 118 child_pid, &status, __WALL); in WorkaroundNeeded() [all …]
|
| /openbsd/src/regress/lib/libpthread/fork/ |
| D | fork.c | 68 pid_t child_pid; in main() local 84 CHECKe(child_pid = fork()); in main() 85 if (child_pid == 0) { in main() 103 ASSERTe(wait(&status), == child_pid); in main()
|
| /openbsd/src/regress/lib/libpthread/setsockopt/3/ |
| D | setsockopt3.c | 21 pid_t child_pid; in sock_connect() local 29 CHECKe(child_pid = fork()); in sock_connect() 30 if (child_pid == 0) { in sock_connect() 40 ASSERTe(wait(&status), == child_pid); in sock_connect()
|
| /openbsd/src/regress/sys/kern/sysvshm/ |
| D | shmtest.c | 61 pid_t child_pid; variable 126 child_pid = getpid(); 168 switch ((child_pid = fork())) { 211 if (waitpid(child_pid, &cstatus, 0) != child_pid) 243 if (child_pid != 0 && sender_shmid != -1) { in cleanup()
|
| /openbsd/src/regress/sys/kern/sysvmsg/ |
| D | msgtest.c | 75 pid_t child_pid; variable 134 child_pid = getpid(); in main() 168 switch ((child_pid = fork())) { in main() 236 if (waitpid(child_pid, &cstatus, 0) != child_pid) 268 if (child_pid != 0 && sender_msqid != -1) { in cleanup()
|
| /openbsd/src/gnu/usr.bin/perl/cpan/Sys-Syslog/t/ |
| D | facilities-routing.t | 37 my $child_pid = fork(); 39 if ($child_pid) { 52 POE::Kernel->sig_child($child_pid, sub { wait() }); 142 kill 15 => $child_pid;
|
| /openbsd/src/sbin/pflogd/ |
| D | privsep.c | 51 static volatile pid_t child_pid = -1; variable 103 child_pid = fork(); in priv_init() 104 if (child_pid == -1) in priv_init() 107 if (!child_pid) { in priv_init() 320 if (child_pid != -1) in sig_pass_to_chld() 321 kill(child_pid, sig); in sig_pass_to_chld()
|
| /openbsd/src/gnu/usr.bin/perl/ext/POSIX/t/ |
| D | waitpid.t | 33 my $child_pid = fork(); 34 fail("fork failed") unless defined $child_pid; 38 if ($child_pid) { 60 elsif ($ret == $child_pid) {
|
| /openbsd/src/regress/lib/libpthread/setsockopt/2/ |
| D | setsockopt2.c | 59 pid_t child_pid; in sock_connect() local 77 CHECKe(child_pid = fork()); in sock_connect() 78 if (child_pid == 0) { in sock_connect() 100 ASSERTe(wait(&status), == child_pid); in sock_connect()
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/Process/FreeBSD/ |
| D | NativeThreadFreeBSD.cpp | 133 void NativeThreadFreeBSD::SetStoppedByFork(lldb::pid_t child_pid, in SetStoppedByFork() argument 139 m_stop_info.details.fork.child_pid = child_pid; in SetStoppedByFork() 143 void NativeThreadFreeBSD::SetStoppedByVFork(lldb::pid_t child_pid, in SetStoppedByVFork() argument 149 m_stop_info.details.fork.child_pid = child_pid; in SetStoppedByVFork()
|
| D | NativeThreadFreeBSD.h | 65 void SetStoppedByFork(lldb::pid_t child_pid, lldb::tid_t child_tid); 66 void SetStoppedByVFork(lldb::pid_t child_pid, lldb::tid_t child_tid);
|
| D | NativeProcessFreeBSD.cpp | 967 void NativeProcessFreeBSD::MonitorClone(::pid_t child_pid, bool is_vfork, in MonitorClone() argument 970 LLDB_LOG(log, "fork, child_pid={0}", child_pid); in MonitorClone() 974 llvm::sys::RetryAfterSignal(-1, ::waitpid, child_pid, &status, 0); in MonitorClone() 975 if (wait_pid != child_pid) { in MonitorClone() 979 child_pid); in MonitorClone() 986 child_pid); in MonitorClone() 991 const auto siginfo_err = PtraceWrapper(PT_LWPINFO, child_pid, &info, sizeof(info)); in MonitorClone() 1000 new NativeProcessFreeBSD(static_cast<::pid_t>(child_pid), m_terminal_fd, in MonitorClone() 1014 parent_thread.SetStoppedByVFork(child_pid, child_tid); in MonitorClone() 1016 parent_thread.SetStoppedByFork(child_pid, child_tid); in MonitorClone()
|
| /openbsd/src/gnu/llvm/lldb/source/Plugins/Process/NetBSD/ |
| D | NativeThreadNetBSD.cpp | 133 void NativeThreadNetBSD::SetStoppedByFork(lldb::pid_t child_pid, in SetStoppedByFork() argument 139 m_stop_info.details.fork.child_pid = child_pid; in SetStoppedByFork() 143 void NativeThreadNetBSD::SetStoppedByVFork(lldb::pid_t child_pid, in SetStoppedByVFork() argument 149 m_stop_info.details.fork.child_pid = child_pid; in SetStoppedByVFork()
|
| D | NativeThreadNetBSD.h | 62 void SetStoppedByFork(lldb::pid_t child_pid, lldb::tid_t child_tid); 63 void SetStoppedByVFork(lldb::pid_t child_pid, lldb::tid_t child_tid);
|
| D | NativeProcessNetBSD.cpp | 1014 void NativeProcessNetBSD::MonitorClone(::pid_t child_pid, bool is_vfork, in MonitorClone() argument 1017 LLDB_LOG(log, "clone, child_pid={0}", child_pid); in MonitorClone() 1021 llvm::sys::RetryAfterSignal(-1, ::waitpid, child_pid, &status, 0); in MonitorClone() 1022 if (wait_pid != child_pid) { in MonitorClone() 1026 child_pid); in MonitorClone() 1033 child_pid); in MonitorClone() 1039 PtraceWrapper(PT_GET_SIGINFO, child_pid, &info, sizeof(info)); in MonitorClone() 1048 new NativeProcessNetBSD(static_cast<::pid_t>(child_pid), m_terminal_fd, in MonitorClone() 1062 parent_thread.SetStoppedByVFork(child_pid, child_tid); in MonitorClone() 1064 parent_thread.SetStoppedByFork(child_pid, child_tid); in MonitorClone()
|
| /openbsd/src/usr.sbin/pkg_add/OpenBSD/ |
| D | Log.pm | 118 my $child_pid = open(my $grab, "-|"); 119 if (!defined $child_pid) { 123 if ($child_pid) {
|
| /openbsd/src/regress/sys/kern/sysvsem/ |
| D | semtest.c | 59 pid_t child_pid; variable 130 child_pid = getpid(); 170 switch ((child_pid = fork())) { 280 if (child_pid != 0 && sender_semid != -1) { in cleanup()
|
| /openbsd/src/usr.sbin/syslogd/ |
| D | privsep.c | 75 static volatile pid_t child_pid = -1; variable 112 child_pid = fork(); in priv_init() 113 if (child_pid == -1) in priv_init() 116 if (!child_pid) { in priv_init() 156 snprintf(childnum, sizeof(childnum), "%d", child_pid); in priv_init() 218 child_pid = child; in priv_exec() 440 waitpid(child_pid, &status, 0); in priv_exec() 830 if (child_pid != -1) in sig_pass_to_chld() 831 kill(child_pid, sig); in sig_pass_to_chld() 844 if (pid == child_pid && cur_state < STATE_QUIT) in sig_got_chld()
|
| /openbsd/src/gnu/usr.bin/binutils/gdb/ |
| D | hppah-nat.c | 421 int parent_pid, child_pid; in child_follow_fork() local 426 child_pid = last_status.value.related_pid; in child_follow_fork() 437 detach_breakpoints (child_pid); in child_follow_fork() 439 SOLIB_REMOVE_INFERIOR_HOOK (child_pid); in child_follow_fork() 445 target_pid_to_str (pid_to_ptid (child_pid))); in child_follow_fork() 446 hppa_require_detach (child_pid, 0); in child_follow_fork() 490 detach_breakpoints (child_pid); in child_follow_fork() 505 target_pid_to_str (pid_to_ptid (child_pid))); in child_follow_fork() 506 hppa_require_attach (child_pid); in child_follow_fork() 507 inferior_ptid = pid_to_ptid (child_pid); in child_follow_fork()
|
| D | linux-nat.c | 162 int child_pid, ret, status; in linux_test_for_tracefork() local 165 child_pid = fork (); in linux_test_for_tracefork() 166 if (child_pid == -1) in linux_test_for_tracefork() 169 if (child_pid == 0) in linux_test_for_tracefork() 172 ret = waitpid (child_pid, &status, 0); in linux_test_for_tracefork() 175 else if (ret != child_pid) in linux_test_for_tracefork() 182 ret = ptrace (PTRACE_SETOPTIONS, child_pid, 0, PTRACE_O_TRACEFORK); in linux_test_for_tracefork() 185 ptrace (PTRACE_KILL, child_pid, 0, 0); in linux_test_for_tracefork() 186 waitpid (child_pid, &status, 0); in linux_test_for_tracefork() 191 ret = ptrace (PTRACE_SETOPTIONS, child_pid, 0, in linux_test_for_tracefork() [all …]
|
| /openbsd/src/usr.sbin/hostapd/ |
| D | privsep.c | 73 static volatile pid_t child_pid = -1; variable 110 if ((child_pid = fork()) == -1) in hostapd_priv_init() 116 if (child_pid == 0) { in hostapd_priv_init() 464 if (child_pid != -1) in hostapd_sig_relay() 465 if (kill(child_pid, sig) == -1) in hostapd_sig_relay() 467 child_pid, sig); in hostapd_sig_relay()
|
| /openbsd/src/gnu/llvm/lldb/tools/debugserver/source/ |
| D | DNB.cpp | 163 const pid_t child_pid = waitpid(pid, &status, 0); in kqueue_thread() local 171 child_pid, signal); in kqueue_thread() 176 child_pid, exit_status); in kqueue_thread() 179 if (child_pid == abs(pid)) { in kqueue_thread() 182 child_pid, signal); in kqueue_thread() 186 DNBProcessSetExitInfo(child_pid, exit_info); in kqueue_thread() 191 "waitpid (%i) -> SIGNALED (signal = %i)", child_pid, in kqueue_thread() 198 DNBProcessSetExitInfo(child_pid, "Terminated due to memory issue"); in kqueue_thread() 200 DNBProcessSetExitInfo(child_pid, "Terminated due to decrypt failure"); in kqueue_thread() 202 DNBProcessSetExitInfo(child_pid, in kqueue_thread() [all …]
|
| /openbsd/src/gnu/llvm/lldb/source/Target/ |
| D | StopInfo.cpp | 1264 StopInfoFork(Thread &thread, lldb::pid_t child_pid, lldb::tid_t child_tid) in StopInfoFork() argument 1265 : StopInfo(thread, child_pid), m_child_pid(child_pid), in StopInfoFork() 1298 StopInfoVFork(Thread &thread, lldb::pid_t child_pid, lldb::tid_t child_tid) in StopInfoVFork() argument 1299 : StopInfo(thread, child_pid), m_child_pid(child_pid), in StopInfoVFork() 1407 lldb::pid_t child_pid, in CreateStopReasonFork() argument 1409 return StopInfoSP(new StopInfoFork(thread, child_pid, child_tid)); in CreateStopReasonFork() 1414 lldb::pid_t child_pid, in CreateStopReasonVFork() argument 1416 return StopInfoSP(new StopInfoVFork(thread, child_pid, child_tid)); in CreateStopReasonVFork()
|
| /openbsd/src/gnu/llvm/lldb/include/lldb/Target/ |
| D | StopInfo.h | 136 lldb::pid_t child_pid, 140 lldb::pid_t child_pid,
|