Skip to contentSkip to conversation

kvm tools: set "done" to true on SDL window close

PATCH Applied Lin Ming 2 participants 2 messages Apr 12, 2013 KVM

lore
Share & tools
lore

Lin Ming

author
#0 lore raw

PATCH 1/1 kvm tools: set "done" to true on SDL window close

Currently, SDL doesn't exit on window close because it stuck in sdl__stop because "done" is not set to true.

Fix it by setting "done" to true on window close.

---
 tools/kvm/ui/sdl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
tools/kvm/ui/sdl.c +1 -0
index 9994490..a260002 100644
@@ -265,6 +265,7 @@ static void *sdl__thread(void *p)
 		return NULL;
 	}
 exit:
+	done = true;
 	kvm_cpu__reboot(fb->kvm);
 
 	return NULL;
Signature · 1 line
1.7.2.5
Applied
#1 lore raw
Quoted 6 lines · Lin Ming

Currently, SDL doesn't exit on window close because it stuck in sdl__stop because "done" is not set to true.

Fix it by setting "done" to true on window close.

Applied, thanks!