Commit 9fa75831 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm: don't use sleep for synchronization in zombie00

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d12317de
......@@ -65,7 +65,13 @@ int main(int argc, char ** argv)
* wait4 here :( Use sleep.
*/
sleep(1);
for (i = 0; i < NR_ZOMBIES; i++) {
siginfo_t siginfo;
if (waitid(P_PID, zombie[i].pid, &siginfo, WNOWAIT | WEXITED)) {
err("Unable to wait %d", zombie[i].pid);
exit(1);
}
}
test_daemon();
test_waitsig();
......
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