qemu-commits
[Top][All Lists]
Advanced

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

[Qemu-commits] [COMMIT d8ee766] Only shutdown video subsytem in sdl_clea


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT d8ee766] Only shutdown video subsytem in sdl_cleanup
Date: Sun, 17 May 2009 14:28:36 -0000

From: malc <address@hidden>

Depending on the order in which atexit handlers are called SDL might
try to join on an audio thread without said thread ever being notified
that it must stop, hence QEMU will forever block in pthread_join call.

Signed-off-by: malc <address@hidden>

diff --git a/sdl.c b/sdl.c
index 03d3ab8..178b553 100644
--- a/sdl.c
+++ b/sdl.c
@@ -753,7 +753,7 @@ static void sdl_cleanup(void)
 {
     if (guest_sprite)
         SDL_FreeCursor(guest_sprite);
-    SDL_Quit();
+    SDL_QuitSubSystem(SDL_INIT_VIDEO);
 }
 
 void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)




reply via email to

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