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

Submitted by Kirill Tkhai on May 4, 2017, 4:07 p.m.

Details

Message ID 149391404787.11711.16613756566462375481.stgit@localhost.localdomain
State New
Series "Nested pid namespaces support"
Headers show

Commit Message

Kirill Tkhai May 4, 2017, 4:07 p.m.
Zombie kills itself and it must you the pid number
from its own pid namespace.

v4: New

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 criu/cr-restore.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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;