[CRIU] [PATCH 2/3] zdtm/pstree: read from a correct file descriptor

Andrey Vagin avagin at openvz.org
Tue Dec 22 06:06:07 PST 2015


From: Andrei Vagin <avagin at openvz.org>

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

diff --git a/test/zdtm/live/static/pstree.c b/test/zdtm/live/static/pstree.c
index 1b2508b..ba857b8 100644
--- a/test/zdtm/live/static/pstree.c
+++ b/test/zdtm/live/static/pstree.c
@@ -50,7 +50,7 @@ int main(int argc, char **argv)
 	close(fp[0]);
 	close(rp[1]);
 
-	read(sp[1], &x, 1);
+	read(sp[0], &x, 1);
 
 	test_daemon();
 	test_waitsig();
-- 
2.4.3



More information about the CRIU mailing list