[CRIU] [PATCH] test/session00: close a signal pipe in all processes

Andrey Vagin avagin at openvz.org
Wed Jan 13 07:29:59 PST 2016


From: Andrew Vagin <avagin at virtuozzo.com>

Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
---
 test/zdtm/live/static/session00.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/zdtm/live/static/session00.c b/test/zdtm/live/static/session00.c
index 4da0d33..bc8f009 100644
--- a/test/zdtm/live/static/session00.c
+++ b/test/zdtm/live/static/session00.c
@@ -89,6 +89,7 @@ static int fork_child(int i)
 				exit(1);
 			}
 
+			close(p[1]);
 			wait(NULL);
 			if (getsid(getpid()) != sid) {
 				fail("The process %d (%x) has SID=%d (expected %d)",
@@ -115,6 +116,7 @@ static int fork_child(int i)
 				exit(1);
 			}
 
+			close(p[1]);
 			wait(NULL);
 			if (getsid(getpid()) != sid) {
 				fail("The process %d (%x) has SID=%d (expected %d)",
-- 
2.4.3



More information about the CRIU mailing list