Lines Matching refs:initialPid

233 static int DoKillProcessGroupOnce(const char* cgroup, uid_t uid, int initialPid, int signal) {  in DoKillProcessGroupOnce()  argument
234 auto path = ConvertUidPidToPath(cgroup, uid, initialPid) + PROCESSGROUP_CGROUP_PROCS_FILE; in DoKillProcessGroupOnce()
241 PLOG(WARNING) << "Failed to open process cgroup uid " << uid << " pid " << initialPid; in DoKillProcessGroupOnce()
248 pgids.emplace(initialPid); in DoKillProcessGroupOnce()
283 << " as part of process cgroup " << initialPid; in DoKillProcessGroupOnce()
293 << initialPid; in DoKillProcessGroupOnce()
303 static int KillProcessGroup(uid_t uid, int initialPid, int signal, int retries, in KillProcessGroup() argument
313 (!access(ConvertUidPidToPath(cpuacct_path.c_str(), uid, initialPid).c_str(), F_OK)) in KillProcessGroup()
325 while ((processes = DoKillProcessGroupOnce(cgroup, uid, initialPid, signal)) > 0) { in KillProcessGroup()
329 LOG(VERBOSE) << "Killed " << processes << " processes for processgroup " << initialPid; in KillProcessGroup()
340 << initialPid; in KillProcessGroup()
355 LOG(INFO) << "Successfully killed process cgroup uid " << uid << " pid " << initialPid in KillProcessGroup()
358 return RemoveProcessGroup(cgroup, uid, initialPid); in KillProcessGroup()
361 LOG(ERROR) << "Failed to kill process cgroup uid " << uid << " pid " << initialPid in KillProcessGroup()
369 int killProcessGroup(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroup() argument
370 return KillProcessGroup(uid, initialPid, signal, 40 /*retries*/, max_processes); in killProcessGroup()
373 int killProcessGroupOnce(uid_t uid, int initialPid, int signal, int* max_processes) { in killProcessGroupOnce() argument
374 return KillProcessGroup(uid, initialPid, signal, 0 /*retries*/, max_processes); in killProcessGroupOnce()
377 int createProcessGroup(uid_t uid, int initialPid, bool memControl) { in createProcessGroup() argument
393 auto uid_pid_path = ConvertUidPidToPath(cgroup.c_str(), uid, initialPid); in createProcessGroup()
403 if (!WriteStringToFile(std::to_string(initialPid), uid_pid_procs_file)) { in createProcessGroup()
405 PLOG(ERROR) << "Failed to write '" << initialPid << "' to " << uid_pid_procs_file; in createProcessGroup()