Searched refs:child_pid (Results 1 – 8 of 8) sorted by relevance
/system/core/llkd/tests/ |
D | llkd_test.cpp | 161 inline void waitForPid(pid_t child_pid) { in waitForPid() argument 163 ASSERT_LE(0, waitpid(child_pid, &wstatus, 0)); in waitForPid() 204 auto child_pid = fork(); in llkd_driver_ABA() local 205 ASSERT_LE(0, child_pid); in llkd_driver_ABA() 207 if (!child_pid) { in llkd_driver_ABA() 229 ASSERT_LE(0, waitpid(child_pid, &wstatus, 0)); in llkd_driver_ABA() 264 pid_t child_pid = fork(); in TEST() local 265 ASSERT_LE(0, child_pid); in TEST() 266 if (!child_pid) { in TEST() 277 waitForPid(child_pid); in TEST() [all …]
|
/system/connectivity/wificond/tests/ |
D | shell_utils.cpp | 68 const pid_t child_pid = fork(); in RunShellCommand() local 69 if (child_pid == -1) { in RunShellCommand() 73 if (child_pid == 0) { // We are in the child process. in RunShellCommand() 114 auto NeedToWaitForChild = [child_pid, &wait_status, &waitpid_ret]() { in RunShellCommand() 116 waitpid_ret = waitpid(child_pid, &wait_status, WNOHANG); in RunShellCommand() 130 if (waitpid_ret != child_pid) { in RunShellCommand() 131 int kill_ret = kill(child_pid, SIGKILL); in RunShellCommand() 145 if (waitpid_ret == child_pid && WIFEXITED(wait_status)) { in RunShellCommand()
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabufinfo_test.cpp | 62 bool ok() const { return child_pid > 0; } in ok() 65 pid_t pid() const { return child_pid; } in pid() 69 pid_t child_pid; member in fd_sharer 74 fd_sharer::fd_sharer() : parent_fd{}, child_fd{}, child_pid{-1} { in fd_sharer() 78 child_pid = fork(); 79 if (child_pid < 0) return; 81 if (child_pid == 0) run(); 85 int err = ::kill(child_pid, SIGKILL); in kill() 88 return ::waitpid(child_pid, nullptr, 0) == child_pid; in kill()
|
/system/netd/server/ |
D | IptablesRestoreController.cpp | 155 StatusOr<pid_t> child_pid = sys.fork(); in forkAndExec() local 156 if (!isOk(child_pid)) { in forkAndExec() 157 ALOGE("fork() failed: %s", strerror(child_pid.status().code())); in forkAndExec() 161 if (child_pid.value() == 0) { in forkAndExec() 200 return new IptablesProcess(child_pid.value(), stdin_pipe[1], stdout_pipe[0], stderr_pipe[0]); in forkAndExec()
|
/system/core/init/ |
D | service_utils.cpp | 99 pid_t child_pid = fork(); in SetUpPidNamespace() local 100 if (child_pid == -1) { in SetUpPidNamespace() 104 if (child_pid > 0) { in SetUpPidNamespace() 115 if (waited_pid == child_pid) { in SetUpPidNamespace()
|
D | selinux.cpp | 125 pid_t child_pid = fork(); in ForkExecveAndWaitForCompletion() local 126 if (child_pid == -1) { in ForkExecveAndWaitForCompletion() 131 if (child_pid == 0) { in ForkExecveAndWaitForCompletion() 180 if (TEMP_FAILURE_RETRY(waitpid(child_pid, &status, 0)) != child_pid) { in ForkExecveAndWaitForCompletion()
|
/system/core/logwrapper/ |
D | logwrap.cpp | 39 static pid_t child_pid; variable 308 child_pid = pid; in setup_signal_handlers() 318 child_pid = 0; in restore_signal_handlers() 322 if (child_pid == 0 || kill(child_pid, signal_num) != 0) { in signal_handler()
|
/system/core/debuggerd/handler/ |
D | debuggerd_handler.cpp | 576 pid_t child_pid = in debuggerd_signal_handler() local 580 if (child_pid == -1) { in debuggerd_signal_handler() 588 futex_wait(&thread_info.pseudothread_tid, child_pid); in debuggerd_signal_handler()
|