Home
last modified time | relevance | path

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

/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()
131 if (waitpid_ret != child_pid) { in RunShellCommand()
132 int kill_ret = kill(child_pid, SIGKILL); in RunShellCommand()
146 if (waitpid_ret == child_pid && WIFEXITED(wait_status)) { in RunShellCommand()
/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/debuggerd/handler/
Ddebuggerd_handler.cpp469 pid_t child_pid = in debuggerd_signal_handler() local
473 if (child_pid == -1) { in debuggerd_signal_handler()
481 futex_wait(&thread_info.pseudothread_tid, child_pid); in debuggerd_signal_handler()
/system/core/init/
Dinit.cpp626 pid_t child_pid = fork(); in fork_execve_and_wait_for_completion() local
627 if (child_pid == -1) { in fork_execve_and_wait_for_completion()
632 if (child_pid == 0) { in fork_execve_and_wait_for_completion()
681 if (TEMP_FAILURE_RETRY(waitpid(child_pid, &status, 0)) != child_pid) { in fork_execve_and_wait_for_completion()
Dservice.cpp110 pid_t child_pid = fork(); in SetUpPidNamespace() local
111 if (child_pid == -1) { in SetUpPidNamespace()
115 if (child_pid > 0) { in SetUpPidNamespace()
126 if (waited_pid == child_pid) { in SetUpPidNamespace()