Lines Matching refs:pid
61 pid_t pid; in main() local
62 if (!android::base::ParseInt(argv[argc - 1], &pid, 1, std::numeric_limits<pid_t>::max())) { in main()
72 if (!android::procinfo::GetProcessInfo(pid, &proc_info)) { in main()
73 err(1, "failed to fetch info for process %d", pid); in main()
77 errx(1, "process %d is a zombie", pid); in main()
86 if (kill(proc_info.pid, 0) != 0) { in main()
87 if (pid == proc_info.pid) { in main()
88 err(1, "cannot send signal to process %d", pid); in main()
90 err(1, "cannot send signal to main thread %d (requested thread %d)", proc_info.pid, pid); in main()
96 "/sys/fs/cgroup/uid_%d/pid_%d/cgroup.freeze", proc_info.uid, proc_info.pid); in main()
107 if (!debuggerd_trigger_dump(proc_info.pid, dump_type, 0, std::move(output_fd))) { in main()
108 if (pid == proc_info.pid) { in main()
109 errx(1, "failed to dump process %d", pid); in main()
111 errx(1, "failed to dump main thread %d (requested thread %d)", proc_info.pid, pid); in main()