From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWGWQ-0002Zn-2b for qemu-devel@nongnu.org; Thu, 21 Aug 2008 16:12:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWGWN-0002Vl-5g for qemu-devel@nongnu.org; Thu, 21 Aug 2008 16:12:41 -0400 Received: from [199.232.76.173] (port=34380 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWGWM-0002Vb-W5 for qemu-devel@nongnu.org; Thu, 21 Aug 2008 16:12:39 -0400 Received: from wr-out-0506.google.com ([64.233.184.235]:26542) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KWGWM-0006Up-PQ for qemu-devel@nongnu.org; Thu, 21 Aug 2008 16:12:38 -0400 Received: by wr-out-0506.google.com with SMTP id c46so161672wra.18 for ; Thu, 21 Aug 2008 13:12:38 -0700 (PDT) Message-ID: <48ADCC07.3080602@codemonkey.ws> Date: Thu, 21 Aug 2008 15:11:51 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 01/13] Handle terminating signals. References: <1219336054-15919-1-git-send-email-kraxel@redhat.com> <1219336054-15919-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1219336054-15919-2-git-send-email-kraxel@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Gerd Hoffmann Gerd Hoffmann wrote: > This patch makes qemu handle signals better. It sets the request_shutdown > flag, making the main_loop exit and qemu taking the usual exit route, with > atexit handlers being called and so on, instead of qemu just being killed > by the signal. > > 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. > > Signed-off-by: Gerd Hoffmann Applied. Thanks. Regards, Anthony Liguori