]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
postcopy: listen thread is never joined
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 11 Mar 2016 09:53:35 +0000 (09:53 +0000)
committerAmit Shah <amit.shah@redhat.com>
Fri, 11 Mar 2016 12:23:59 +0000 (17:53 +0530)
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>
migration/savevm.c

index 384e8727ef015f67826343789c4d3ce4ef4f0f4d..0a33c227c569fe7ccd6a58c8ba16e4fc063d111b 100644 (file)
@@ -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);