Commit 153c033d authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Cyrill Gorcunov

zdtm: Add sleep() to zombie00

When creating zombies we must wait for them to appear to test that we do
support zombies, but not some transient state. But the thing is that we
cannot use wait() or any other synchronous call here, thus we have to
suck and use sleep(1) :(
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 766a42e3
......@@ -60,6 +60,13 @@ int main(int argc, char ** argv)
zombie[i].exited, zombie[i].exitcode);
}
/*
* We must wait for zombies to appear, but we cannot use
* wait4 here :( Use sleep.
*/
sleep(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