mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
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: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
766a42e316
commit
153c033d7e
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user