Home
last modified time | relevance | path

Searched refs:pgid (Results 1 – 1 of 1) sorted by relevance

/system/core/libprocessgroup/
Dprocessgroup.cpp290 pid_t pgid = getpgid(pid); in DoKillProcessGroupOnce() local
291 if (pgid == -1) PLOG(ERROR) << "getpgid(" << pid << ") failed"; in DoKillProcessGroupOnce()
292 if (pgid == pid) { in DoKillProcessGroupOnce()
301 pid_t pgid = getpgid(*it); in DoKillProcessGroupOnce() local
302 if (pgids.count(pgid) == 1) { in DoKillProcessGroupOnce()
310 for (const auto pgid : pgids) { in DoKillProcessGroupOnce() local
311 LOG(VERBOSE) << "Killing process group " << -pgid << " in uid " << uid in DoKillProcessGroupOnce()
314 if (kill(-pgid, signal) == -1 && errno != ESRCH) { in DoKillProcessGroupOnce()
315 PLOG(WARNING) << "kill(" << -pgid << ", " << signal << ") failed"; in DoKillProcessGroupOnce()