[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 1/2] postcopy: listen thread is never joined

From: Dr. David Alan Gilbert (git)
Subject: [Qemu-devel] [PATCH v2 1/2] postcopy: listen thread is never joined
Date: Fri, 11 Mar 2016 09:53:35 +0000

From: "Dr. David Alan Gilbert" <address@hidden>

We don't join the listen thread, it does its own cleanup.
Mark as detached not joinable.

Signed-off-by: Dr. David Alan Gilbert <address@hidden>
Reported-by: Paolo Bonzini <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
 migration/savevm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/migration/savevm.c b/migration/savevm.c
index 384e872..0a33c22 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);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]