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

zdtm: check a case when a task is in sub-mntns, its child is in root mtnns

Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrew Vagin
2015-11-27 16:00:00 +03:00
committed by Pavel Emelyanov
parent a1d06e53f6
commit f73802fe6d

View File

@@ -52,6 +52,13 @@ int main(int argc, char **argv)
sleep(1);
return 1;
}
pid = fork();
if (pid == 0) {
prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0);
while (1)
sleep(1);
return 1;
}
if (unshare(CLONE_NEWNS)) {
pr_perror("unshare");
return 1;