From f73802fe6dea5e35f42c8fb4f4a7f73d5b633e90 Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Fri, 27 Nov 2015 16:00:00 +0300 Subject: [PATCH] zdtm: check a case when a task is in sub-mntns, its child is in root mtnns Signed-off-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- test/zdtm/live/static/tempfs_subns.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/zdtm/live/static/tempfs_subns.c b/test/zdtm/live/static/tempfs_subns.c index 178400d83..99169be94 100644 --- a/test/zdtm/live/static/tempfs_subns.c +++ b/test/zdtm/live/static/tempfs_subns.c @@ -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;