aboutsummaryrefslogtreecommitdiff
path: root/samples/client.c
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2021-01-28 15:12:38 +0000
committerGitHub <noreply@github.com>2021-01-28 15:12:38 +0000
commitdf2e7e2eb66ff21d3089a941c697d8faf94c9734 (patch)
treeb08977d5caeaa9586ab799214c660fbf5cd3b219 /samples/client.c
parent73ede8cbd486c2bfab2f7b293c6090e022910ced (diff)
downloadlibvfio-user-df2e7e2eb66ff21d3089a941c697d8faf94c9734.zip
libvfio-user-df2e7e2eb66ff21d3089a941c697d8faf94c9734.tar.gz
libvfio-user-df2e7e2eb66ff21d3089a941c697d8faf94c9734.tar.bz2
client/server: don't sleep for fake guest thread (#275)
The fake guest thread unconditionally performs the first iteration, so there's no need to give it time to do stuff. Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples/client.c')
-rw-r--r--samples/client.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/samples/client.c b/samples/client.c
index f32a060..b6a4853 100644
--- a/samples/client.c
+++ b/samples/client.c
@@ -866,9 +866,6 @@ migrate_from(int sock, int migr_reg_index, size_t *nr_iters,
err(EXIT_FAILURE, "failed to create pthread");
}
- /* give fake guest a chance to write something */
- usleep(1000);
-
/*
* TODO The server generates migration data while it's in pre-copy state.
*