[CRIU] [PATCH] zdtm: Add SIGCHLD to clone flags in pidns01

Kirill Tkhai ktkhai at virtuozzo.com
Fri Jun 9 10:41:53 MSK 2017


Plain wait() waits only children created with SIGCHLD flag.
Add it.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 test/zdtm/static/pidns01.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/static/pidns01.c b/test/zdtm/static/pidns01.c
index fe8d435a3..70137edc4 100644
--- a/test/zdtm/static/pidns01.c
+++ b/test/zdtm/static/pidns01.c
@@ -116,7 +116,7 @@ int main(int argc, char **argv)
 	}
 	futex_init(futex);
 
-	pid = clone(child_fn, stack + sizeof(stack), CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWNET, NULL);
+	pid = clone(child_fn, stack + sizeof(stack), CLONE_NEWUSER|CLONE_NEWPID|CLONE_NEWNET|SIGCHLD, NULL);
 	if (pid < 0) {
 		fail("clone");
 		return 1;



More information about the CRIU mailing list