From: Anthony Liguori Subject: Re: [Qemu-devel] [PATCH 01/11] Handle terminating signals. Date: Mon, 11 Aug 2008 14:27:18 -0500 Message-ID: <48A09296.2040406@codemonkey.ws> References: <1218457970-11707-1-git-send-email-kraxel@redhat.com> <1218457970-11707-2-git-send-email-kraxel@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1218457970-11707-2-git-send-email-kraxel@redhat.com> 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, Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org Gerd Hoffmann wrote: > diff --git a/curses.c b/curses.c > index 87aa9b3..03580fb 100644 > --- a/curses.c > +++ b/curses.c > @@ -346,8 +346,6 @@ void curses_display_init(DisplayState *ds, int full_screen) > atexit(curses_atexit); > > #ifndef _WIN32 > - signal(SIGINT, SIG_DFL); > - signal(SIGQUIT, SIG_DFL); > #if defined(SIGWINCH) && defined(KEY_RESIZE) > /* some curses implementations provide a handler, but we > * want to be sure this is handled regardless of the library */ > diff --git a/sdl.c b/sdl.c > index 0edc4a0..84a9d6d 100644 > --- 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?