2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

pid: Use last_level_pid() in restore_pgid()

This patch is cleanup, which just makes comparation
on values on the one pid level. It has no functional
payload, because the new patches turn off pgid set
if for multi-level pids cases, till it will be implemented.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
This commit is contained in:
Kirill Tkhai
2017-04-10 11:16:51 +03:00
committed by Andrei Vagin
parent ba990b7d69
commit a11a465128

View File

@@ -1409,7 +1409,7 @@ static void restore_pgid(void)
if (my_pgid == pgid)
return;
if (my_pgid != vpid(current)) {
if (my_pgid != last_level_pid(current->pid)) {
struct pstree_item *leader;
/*
@@ -1431,7 +1431,7 @@ static void restore_pgid(void)
exit(1);
}
if (my_pgid == vpid(current))
if (my_pgid == last_level_pid(current->pid))
futex_set_and_wake(&rsti(current)->pgrp_set, 1);
}