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

/system/connectivity/wificond/tests/
H A Dshell_utils.cpp68 const pid_t child_pid = fork(); local
69 if (child_pid == -1) {
73 if (child_pid == 0) { // We are in the child process.
114 auto NeedToWaitForChild = [child_pid, &wait_status, &waitpid_ret]() {
116 waitpid_ret = waitpid(child_pid, &wait_status, WNOHANG);
131 if (waitpid_ret != child_pid) {
132 int kill_ret = kill(child_pid, SIGKILL);
146 if (waitpid_ret == child_pid && WIFEXITED(wait_status)) {
/system/netd/server/
H A DIptablesRestoreController.cpp155 StatusOr<pid_t> child_pid = sys.fork(); local
156 if (!isOk(child_pid)) {
157 ALOGE("fork() failed: %s", strerror(child_pid.status().code()));
161 if (child_pid.value() == 0) {
200 return new IptablesProcess(child_pid.value(), stdin_pipe[1], stdout_pipe[0], stderr_pipe[0]);
/system/core/debuggerd/handler/
H A Ddebuggerd_handler.cpp469 pid_t child_pid = local
473 if (child_pid == -1) {
481 futex_wait(&thread_info.pseudothread_tid, child_pid);
/system/core/init/
H A Dinit.cpp626 pid_t child_pid = fork(); local
627 if (child_pid == -1) {
632 if (child_pid == 0) {
681 if (TEMP_FAILURE_RETRY(waitpid(child_pid, &status, 0)) != child_pid) {
H A Dservice.cpp110 pid_t child_pid = fork(); local
111 if (child_pid == -1) {
115 if (child_pid > 0) {
126 if (waited_pid == child_pid) {

Completed in 2624 milliseconds