From patchwork Tue Jul 3 13:38:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Chouteau X-Patchwork-Id: 168812 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 8FD302C00C7 for ; Tue, 3 Jul 2012 23:39:25 +1000 (EST) Received: from localhost ([::1]:35584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm3K6-0006OF-2e for incoming@patchwork.ozlabs.org; Tue, 03 Jul 2012 09:39:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm3Jv-0006NF-Vu for qemu-devel@nongnu.org; Tue, 03 Jul 2012 09:39:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sm3Jt-0007uI-1B for qemu-devel@nongnu.org; Tue, 03 Jul 2012 09:39:11 -0400 Received: from mel.act-europe.fr ([194.98.77.210]:49357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm3Js-0007Zg-Rf for qemu-devel@nongnu.org; Tue, 03 Jul 2012 09:39:08 -0400 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 773AF29000F; Tue, 3 Jul 2012 15:38:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at eu.adacore.com Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k5+djy4B+t1M; Tue, 3 Jul 2012 15:38:52 +0200 (CEST) Received: from PomPomGalli.act-europe.fr (pompomgalli.act-europe.fr [10.10.1.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 466A0290001; Tue, 3 Jul 2012 15:38:52 +0200 (CEST) From: Fabien Chouteau To: qemu-devel@nongnu.org Date: Tue, 3 Jul 2012 15:38:42 +0200 Message-Id: <1341322722-32691-1-git-send-email-chouteau@adacore.com> X-Mailer: git-send-email 1.7.9.5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 194.98.77.210 Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH] Use clean shutdown request for ctrl-a x X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Fabien Chouteau --- qemu-char.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu-char.c b/qemu-char.c index c2aaaee..1f43c95 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -353,7 +353,7 @@ static int mux_proc_byte(CharDriverState *chr, MuxDriver *d, int ch) { const char *term = "QEMU: Terminated\n\r"; chr->chr_write(chr,(uint8_t *)term,strlen(term)); - exit(0); + qemu_system_shutdown_request(); break; } case 's':