Home | History | Annotate | Download | only in libprocessgroup

Lines Matching refs:initialPid

256 static int killProcessGroupOnce(uid_t uid, int initialPid, int signal)
264 while ((pid = getOneAppProcess(uid, initialPid, &ctx)) >= 0) {
272 if (pid != initialPid) {
277 SLOGI("Killing pid %d in uid %d as part of process group %d", pid, uid, initialPid);
292 int killProcessGroup(uid_t uid, int initialPid, int signal)
299 while ((processes = killProcessGroupOnce(uid, initialPid, signal)) > 0) {
300 SLOGV("killed %d processes for processgroup %d\n", processes, initialPid);
306 processes, initialPid);
311 SLOGV("Killed process group uid %d pid %d in %" PRId64 "ms, %d procs remain", uid, initialPid,
315 return removeProcessGroup(uid, initialPid);
340 int createProcessGroup(uid_t uid, int initialPid)
353 convertUidPidToPath(path, sizeof(path), uid, initialPid);
371 int len = snprintf(pid, sizeof(pid), "%d", initialPid);