mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 05:48:05 +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:
parent
a1d06e53f6
commit
f73802fe6d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user