From 387f05dbd953e0f5669c2e98f4a0e6b95687cc62 Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Thu, 28 Jan 2021 21:07:28 +0000 Subject: client/server: don't sleep before migrating (#281) Migration now takes a non-trivial amount of time, plus running the sample through Valgrind will inherently be slower. Signed-off-by: Thanos Makatos --- samples/client.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'samples/client.c') diff --git a/samples/client.c b/samples/client.c index 0ba844e..d5b3027 100644 --- a/samples/client.c +++ b/samples/client.c @@ -1270,14 +1270,6 @@ int main(int argc, char *argv[]) errx(EXIT_FAILURE, "failed to write to BAR0: %s", strerror(-ret)); } - /* - * By sleeping here for 1s after migration finishes on the source server - * (but not yet started on the destination server), the timer should be - * armed on the destination server for 2-1=1 seconds. If we don't sleep - * then it will be armed for 2 seconds, which isn't as interesting. - */ - sleep(1); - nr_iters = migrate_from(sock, migr_reg_index, &nr_iters, &migr_iters, md5sum, bar1_size); -- cgit v1.1