From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3qW2-0000Vy-I9 for qemu-devel@nongnu.org; Wed, 14 Sep 2011 10:32:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3qVx-0001hA-HF for qemu-devel@nongnu.org; Wed, 14 Sep 2011 10:32:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3qVx-0001fU-8s for qemu-devel@nongnu.org; Wed, 14 Sep 2011 10:32:37 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8EEWZYI017779 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 14 Sep 2011 10:32:36 -0400 From: Kevin Wolf Date: Wed, 14 Sep 2011 15:38:40 +0200 Message-Id: <1316007520-30808-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH] Fix termination by signal with -no-shutdown List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com On signals such as SIGTERM qemu should exit instead of just stopping the VM even with -no-shutdown. Signed-off-by: Kevin Wolf --- vl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/vl.c b/vl.c index b773d2f..0c2fc3f 100644 --- a/vl.c +++ b/vl.c @@ -1296,6 +1296,7 @@ void qemu_system_killed(int signal, pid_t pid) { shutdown_signal = signal; shutdown_pid = pid; + no_shutdown = 0; qemu_system_shutdown_request(); } -- 1.7.6