diff --git a/criu/cr-restore.c b/criu/cr-restore.c index f2e534977..3ad1791ba 100644 --- a/criu/cr-restore.c +++ b/criu/cr-restore.c @@ -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); }