[CRIU] [PATCH v5 17/42] zombie: Kill by last_level_pid, not by vpid
Kirill Tkhai
ktkhai at virtuozzo.com
Fri May 5 09:15:29 PDT 2017
Zombie kills itself and it must you the pid number
from its own pid namespace.
v4: New
Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
criu/cr-restore.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index e29f66824..2b798c585 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -990,7 +990,7 @@ static int restore_one_zombie(CoreEntry *core)
signr = SIGABRT;
}
- if (kill(vpid(current), signr) < 0)
+ if (kill(last_level_pid(current->pid), signr) < 0)
pr_perror("Can't kill myself, will just exit");
exit_code = 0;
More information about the CRIU
mailing list