From: Gerd Hoffmann Subject: Re: [Qemu-devel] [PATCH 01/11] Handle terminating signals. Date: Mon, 11 Aug 2008 21:52:54 +0200 Message-ID: <48A09896.60807@redhat.com> References: <1218457970-11707-1-git-send-email-kraxel@redhat.com> <1218457970-11707-2-git-send-email-kraxel@redhat.com> <48A09296.2040406@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48A09296.2040406@codemonkey.ws> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Anthony Liguori wrote: >> --- a/sdl.c >> +++ b/sdl.c >> @@ -476,10 +476,8 @@ static void sdl_refresh(DisplayState *ds) >> sdl_process_key(&ev->key); >> break; >> case SDL_QUIT: >> - if (!no_quit) { >> + if (!no_quit) >> qemu_system_shutdown_request(); >> - vm_start(); /* In case we're paused */ >> > > I'm curious why this is no longer needed? To avoid calling vm_start() from the signal handler main_loop() got an additional check so qemu_system_shutdown_request() works even when the vm is in stopped state. [ Hmm, cut&paste -> changelog I guess ... ] cheers, Gerd -- http://kraxel.fedorapeople.org/xenner/