Lines Matching refs:pid
99 pid_t pid; in KillProcessesWithTmpfsMounts() local
101 if (!android::base::ParseInt(proc_de->d_name, &pid)) continue; in KillProcessesWithTmpfsMounts()
104 std::string mounts_file(StringPrintf("/proc/%d/mounts", pid)); in KillProcessesWithTmpfsMounts()
117 pids.insert(pid); in KillProcessesWithTmpfsMounts()
123 for (const auto& pid : pids) { in KillProcessesWithTmpfsMounts() local
124 LOG(WARNING) << "Killing pid "<< pid << " with signal " << strsignal(signal) << in KillProcessesWithTmpfsMounts()
126 kill(pid, signal); in KillProcessesWithTmpfsMounts()
144 pid_t pid; in KillProcessesWithOpenFiles() local
146 if (!android::base::ParseInt(proc_de->d_name, &pid)) continue; in KillProcessesWithOpenFiles()
150 auto path = StringPrintf("/proc/%d", pid); in KillProcessesWithOpenFiles()
169 if (!IsFuseDaemon(pid) || killFuseDaemon) { in KillProcessesWithOpenFiles()
170 pids.insert(pid); in KillProcessesWithOpenFiles()
177 for (const auto& pid : pids) { in KillProcessesWithOpenFiles() local
179 android::base::ReadFileToString(StringPrintf("/proc/%d/comm", pid), &comm); in KillProcessesWithOpenFiles()
183 android::base::Readlink(StringPrintf("/proc/%d/exe", pid), &exe); in KillProcessesWithOpenFiles()
185 LOG(WARNING) << "Sending " << strsignal(signal) << " to pid " << pid << " (" << comm in KillProcessesWithOpenFiles()
187 kill(pid, signal); in KillProcessesWithOpenFiles()