Commit 593c8d10 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

zdtm: Make pthread00 to wait with 0

P_ALL is an argument for waitid, not waitpid.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarAndrew Vagin <avagin@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 465c5945
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment