qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 01/15] sdl: Fix termination in -no-shutdown mode


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 01/15] sdl: Fix termination in -no-shutdown mode
Date: Sat, 30 Jul 2011 07:57:42 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Lightning/1.0b2 Thunderbird/3.1.10

On 07/30/2011 04:39 AM, Jan Kiszka wrote:
From: Jan Kiszka<address@hidden>

Just like the monitor does, we need to clear no_shutdown before calling
qemu_system_shutdown_request on quit requests. Otherwise, QEMU just
stops the VM.

Signed-off-by: Jan Kiszka<address@hidden>

Reviewed-by: Anthony Liguori <address@hidden>

Regards,

Anthony Liguori

---
  ui/sdl.c |    4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ui/sdl.c b/ui/sdl.c
index 6dbc5cb..9efcda5 100644
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -672,8 +672,10 @@ static void sdl_refresh(DisplayState *ds)
                  sdl_process_key(&ev->key);
              break;
          case SDL_QUIT:
-            if (!no_quit)
+            if (!no_quit) {
+                no_shutdown = 0;
                  qemu_system_shutdown_request();
+            }
              break;
          case SDL_MOUSEMOTION:
              if (gui_grab || kbd_mouse_is_absolute() ||




reply via email to

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