Lines Matching refs:pid
72 pid_t pid = fork(); in Java_Main_startSecondaryProcess() local
73 if (pid < 0) { in Java_Main_startSecondaryProcess()
75 } else if (pid == 0) { in Java_Main_startSecondaryProcess()
79 return pid; in Java_Main_startSecondaryProcess()
120 static void MoreErrorInfo(pid_t pid, bool sig_quit_on_fail) { in MoreErrorInfo() argument
121 printf("Secondary pid is %d\n", pid); in MoreErrorInfo()
123 PrintFileToLog(android::base::StringPrintf("/proc/%d/maps", pid), ::android::base::ERROR); in MoreErrorInfo()
126 int res = kill(pid, SIGQUIT); in MoreErrorInfo()
207 pid_t pid = static_cast<pid_t>(pid_int); in Java_Main_unwindOtherProcess() local
210 if (ptrace(PTRACE_SEIZE, pid, 0, 0)) { in Java_Main_unwindOtherProcess()
214 kill(pid, SIGKILL); in Java_Main_unwindOtherProcess()
220 int signal = wait_for_sigstop(pid, &total_sleep_time_usec, &detach_failed); in Java_Main_unwindOtherProcess()
226 std::unique_ptr<Backtrace> bt(Backtrace::Create(pid, BACKTRACE_CURRENT_THREAD)); in Java_Main_unwindOtherProcess()
251 MoreErrorInfo(pid, kSigQuitOnFail); in Java_Main_unwindOtherProcess()
254 if (ptrace(PTRACE_DETACH, pid, 0, 0) != 0) { in Java_Main_unwindOtherProcess()
264 kill(pid, SIGKILL); in Java_Main_unwindOtherProcess()