Lines Matching refs:pid
85 pid_t pid = fork(); in Java_Main_startSecondaryProcess() local
86 if (pid < 0) { in Java_Main_startSecondaryProcess()
88 } else if (pid == 0) { in Java_Main_startSecondaryProcess()
92 return pid; in Java_Main_startSecondaryProcess()
135 static void MoreErrorInfo(pid_t pid, bool sig_quit_on_fail) { in MoreErrorInfo() argument
136 PrintFileToLog(android::base::StringPrintf("/proc/%d/maps", pid), ::android::base::ERROR); in MoreErrorInfo()
139 int res = kill(pid, SIGQUIT); in MoreErrorInfo()
224 pid_t pid = static_cast<pid_t>(pid_int); in Java_Main_unwindOtherProcess() local
227 if (ptrace(PTRACE_SEIZE, pid, 0, 0)) { in Java_Main_unwindOtherProcess()
231 kill(pid, SIGKILL); in Java_Main_unwindOtherProcess()
237 int signal = wait_for_sigstop(pid, &total_sleep_time_usec, &detach_failed); in Java_Main_unwindOtherProcess()
243 std::unique_ptr<Backtrace> bt(Backtrace::Create(pid, BACKTRACE_CURRENT_THREAD)); in Java_Main_unwindOtherProcess()
268 printf("Failed to unwind secondary with pid %d\n", pid); in Java_Main_unwindOtherProcess()
269 MoreErrorInfo(pid, kSigQuitOnFail); in Java_Main_unwindOtherProcess()
272 if (ptrace(PTRACE_DETACH, pid, 0, 0) != 0) { in Java_Main_unwindOtherProcess()
283 kill(pid, SIGKILL); in Java_Main_unwindOtherProcess()