Commit 7352e104 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

zdtm/maps007: wait MAX_DELTA operations before daemonizing

We suppose that the test is not able to exit before this moment.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 1f3b76b0
......@@ -70,9 +70,6 @@ int main(int argc, char **argv)
return 1;
}
if (child)
test_daemon();
while (1) {
void *ret;
unsigned long size;
......@@ -94,6 +91,8 @@ int main(int argc, char **argv)
}
count++;
if (child && count == MAX_DELTA + 1)
test_daemon();
p = start + ((lrand48() * PAGE_SIZE) % MEM_SIZE);
size = lrand48() * PAGE_SIZE;
......
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