Home
last modified time | relevance | path

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

/system/core/libprocessgroup/
Dprocessgroup.cpp261 pid_t pgid = getpgid(pid); in DoKillProcessGroupOnce() local
262 if (pgid == -1) PLOG(ERROR) << "getpgid(" << pid << ") failed"; in DoKillProcessGroupOnce()
263 if (pgid == pid) { in DoKillProcessGroupOnce()
272 pid_t pgid = getpgid(*it); in DoKillProcessGroupOnce() local
273 if (pgids.count(pgid) == 1) { in DoKillProcessGroupOnce()
281 for (const auto pgid : pgids) { in DoKillProcessGroupOnce() local
282 LOG(VERBOSE) << "Killing process group " << -pgid << " in uid " << uid in DoKillProcessGroupOnce()
285 if (kill(-pgid, signal) == -1 && errno != ESRCH) { in DoKillProcessGroupOnce()
286 PLOG(WARNING) << "kill(" << -pgid << ", " << signal << ") failed"; in DoKillProcessGroupOnce()