[CRIU] [PATCH v4 16/41] zombie: Kill by last_level_pid, not by vpid

Kirill Tkhai ktkhai at virtuozzo.com
Thu May 4 09:07:27 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 9c6d4b041..cb9beeac2 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