[CRIU] [PATCH] zdtm: Add SIGCHLD flag to userns-leaked-sock test

Kirill Tkhai ktkhai at virtuozzo.com
Thu Jun 29 15:19:13 MSK 2017


wait() waits children created using SIGCHLD signal only.
Add it.

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

diff --git a/test/zdtm/static/userns-leaked-sock.c b/test/zdtm/static/userns-leaked-sock.c
index 8a84efe6a..673eb9088 100644
--- a/test/zdtm/static/userns-leaked-sock.c
+++ b/test/zdtm/static/userns-leaked-sock.c
@@ -127,7 +127,7 @@ int main(int argc, char **argv)
 
 	{
 		char stack;
-		pid = clone(child_fn, &stack - 256, CLONE_NEWUSER|CLONE_NEWNET|CLONE_NEWPID, (void *)(long)sk);
+		pid = clone(child_fn, &stack - 256, CLONE_NEWUSER|CLONE_NEWNET|CLONE_NEWPID|SIGCHLD, (void *)(long)sk);
 		if (pid == -1) {
 			fail("clone");
 			return 1;



More information about the CRIU mailing list