Commit 708e2b37 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

seize: increase timeout of freezing processes

The timeout between iterations should be the save oder
with scheduler timeslice, which is about 100 msec.

Currently we wait for inly 10 msec, which is obviously not enough.
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent bf039b77
......@@ -217,7 +217,7 @@ static int freeze_processes(void)
continue;
}
timeout = 10000000 * i;
timeout = 100000000 * (i + 1); /* 100 msec */
req.tv_nsec = timeout % 1000000000;
req.tv_sec = timeout / 1000000000;
nanosleep(&req, NULL);
......
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