[CRIU] [PATCH 2/3] zdtm: Make pthread00 to wait with 0

Cyrill Gorcunov gorcunov at openvz.org
Fri Nov 23 04:49:05 EST 2012


P_ALL is an argument for waitid, not waitpid.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 test/zdtm/live/static/pthread00.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/zdtm/live/static/pthread00.c b/test/zdtm/live/static/pthread00.c
index 20d200a..224d855 100644
--- a/test/zdtm/live/static/pthread00.c
+++ b/test/zdtm/live/static/pthread00.c
@@ -95,7 +95,7 @@ static void *ff1(void *map)
 	}
 
 	test_msg("Waiting for %d\n", pid);
-	waitpid(pid, &status, P_ALL);
+	waitpid(pid, &status, 0);
 
 	return NULL;
 }
@@ -159,7 +159,7 @@ static void *f1(void *map)
 
 	pthread_join(th, NULL);
 	test_msg("Waiting for %d\n", pid);
-	waitpid(pid, &status, P_ALL);
+	waitpid(pid, &status, 0);
 
 	return NULL;
 }
@@ -218,7 +218,7 @@ static void *f2(void *map)
 	}
 
 	test_msg("Waiting for %d\n", pid);
-	waitpid(pid, &status, P_ALL);
+	waitpid(pid, &status, 0);
 
 	return NULL;
 }
-- 
1.7.7.6



More information about the CRIU mailing list