diff --git a/test/zdtm/live/static/zombie00.c b/test/zdtm/live/static/zombie00.c index fb34d4ec2..3ceac93f7 100644 --- a/test/zdtm/live/static/zombie00.c +++ b/test/zdtm/live/static/zombie00.c @@ -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();