Merge "Fixed the can not kill some process using libprocessgroup" am: 0799f44497 am: 1b1b0a3700
am: 0ed7988c2b
Change-Id: I8a54930448bb16e44acb692869bc41bfccd96bf1
This commit is contained in:
commit
84741f23e2
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ static int DoKillProcessGroupOnce(uid_t uid, int initialPid, int signal) {
|
|||
|
||||
// Erase all pids that will be killed when we kill the process groups.
|
||||
for (auto it = pids.begin(); it != pids.end();) {
|
||||
pid_t pgid = getpgid(pid);
|
||||
pid_t pgid = getpgid(*it);
|
||||
if (pgids.count(pgid) == 1) {
|
||||
it = pids.erase(it);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue