[CRIU] [crtools-bot] zdtm: Add sleep() to zombie00
Cyrill Gorcunov
gorcunov at openvz.org
Wed Feb 1 16:34:31 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit 153c033d7e3fc7856c3b4abb4d4e6fe41598a8b8
Author: Pavel Emelyanov <xemul at parallels.com>
Date: Thu Feb 2 01:26:22 2012 +0400
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 at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
test/zdtm/live/static/zombie00.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/test/zdtm/live/static/zombie00.c b/test/zdtm/live/static/zombie00.c
index fb34d4e..3ceac93 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();
More information about the CRIU
mailing list