2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

zdtm: Make pthread00 to wait with 0

P_ALL is an argument for waitid, not waitpid.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Andrew Vagin <avagin@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Cyrill Gorcunov
2012-11-27 19:31:31 +04:00
committed by Pavel Emelyanov
parent 465c59457d
commit 593c8d1048

View File

@@ -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;
}