Home
last modified time | relevance | path

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

/system/core/llkd/tests/
Dllkd_test.cpp160 inline void waitForPid(pid_t child_pid) { in waitForPid() argument
162 ASSERT_LE(0, waitpid(child_pid, &wstatus, 0)); in waitForPid()
203 auto child_pid = fork(); in llkd_driver_ABA() local
204 ASSERT_LE(0, child_pid); in llkd_driver_ABA()
206 if (!child_pid) { in llkd_driver_ABA()
228 ASSERT_LE(0, waitpid(child_pid, &wstatus, 0)); in llkd_driver_ABA()
263 pid_t child_pid = fork(); in TEST() local
264 ASSERT_LE(0, child_pid); in TEST()
265 if (!child_pid) { in TEST()
276 waitForPid(child_pid); in TEST()
[all …]
/system/connectivity/wificond/tests/
Dshell_utils.cpp68 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/core/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp61 bool ok() const { return child_pid > 0; } in ok()
64 pid_t pid() const { return child_pid; } in pid()
68 pid_t child_pid; member in fd_sharer
73 fd_sharer::fd_sharer() : parent_fd{}, child_fd{}, child_pid{-1} { in fd_sharer()
77 child_pid = fork();
78 if (child_pid < 0) return;
80 if (child_pid == 0) run();
84 int err = ::kill(child_pid, SIGKILL); in kill()
87 return ::waitpid(child_pid, nullptr, 0) == child_pid; in kill()
/system/netd/server/
DIptablesRestoreController.cpp155 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/
Dselinux.cpp118 pid_t child_pid = fork(); in ForkExecveAndWaitForCompletion() local
119 if (child_pid == -1) { in ForkExecveAndWaitForCompletion()
124 if (child_pid == 0) { in ForkExecveAndWaitForCompletion()
173 if (TEMP_FAILURE_RETRY(waitpid(child_pid, &status, 0)) != child_pid) { in ForkExecveAndWaitForCompletion()
Dservice.cpp149 pid_t child_pid = fork(); in SetUpPidNamespace() local
150 if (child_pid == -1) { in SetUpPidNamespace()
154 if (child_pid > 0) { in SetUpPidNamespace()
165 if (waited_pid == child_pid) { in SetUpPidNamespace()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp555 pid_t child_pid = in debuggerd_signal_handler() local
559 if (child_pid == -1) { in debuggerd_signal_handler()
567 futex_wait(&thread_info.pseudothread_tid, child_pid); in debuggerd_signal_handler()