summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2016-03-11 09:53:35 +0000
committerAmit Shah <amit.shah@redhat.com>2016-03-11 17:53:59 +0530
commita587a3fe6cadd3ce1d53235ecd759f0990132bf3 (patch)
tree19d9411171d3cd27470f27c3ebd82b568107527e
parent864699227911909ef1e33ecf91bf3c900715a9b1 (diff)
downloadqemu-a587a3fe6cadd3ce1d53235ecd759f0990132bf3.tar.gz
qemu-a587a3fe6cadd3ce1d53235ecd759f0990132bf3.tar.bz2
qemu-a587a3fe6cadd3ce1d53235ecd759f0990132bf3.zip
postcopy: listen thread is never joined
We don't join the listen thread, it does its own cleanup. Mark as detached not joinable. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reported-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <1457690016-9070-2-git-send-email-dgilbert@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
-rw-r--r--migration/savevm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/savevm.c b/migration/savevm.c
index 384e8727ef..0a33c227c5 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -1494,7 +1494,7 @@ static int loadvm_postcopy_handle_listen(MigrationIncomingState *mis)
qemu_sem_init(&mis->listen_thread_sem, 0);
qemu_thread_create(&mis->listen_thread, "postcopy/listen",
postcopy_ram_listen_thread, mis->from_src_file,
- QEMU_THREAD_JOINABLE);
+ QEMU_THREAD_DETACHED);
qemu_sem_wait(&mis->listen_thread_sem);
qemu_sem_destroy(&mis->listen_thread_sem);