From patchwork Wed Sep 21 10:26:04 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 115767 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2B2BDB6F8E for ; Wed, 21 Sep 2011 21:25:20 +1000 (EST) Received: from localhost ([::1]:46712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K17-00018J-6C for incoming@patchwork.ozlabs.org; Wed, 21 Sep 2011 06:27:01 -0400 Received: from eggs.gnu.org ([140.186.70.92]:48143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0R-0007be-Mw for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6K0N-0006P6-SF for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:19 -0400 Received: from mtagate3.uk.ibm.com ([194.196.100.163]:57792) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6K0N-0006Om-LA for qemu-devel@nongnu.org; Wed, 21 Sep 2011 06:26:15 -0400 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p8LAQEfk018219 for ; Wed, 21 Sep 2011 10:26:14 GMT Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8LAQE3x2453754 for ; Wed, 21 Sep 2011 11:26:14 +0100 Received: from d06av05.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8LHQRvP018281 for ; Wed, 21 Sep 2011 11:26:27 -0600 Received: from localhost ([9.79.3.245]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p8LHQR9q018277; Wed, 21 Sep 2011 11:26:27 -0600 From: Stefan Hajnoczi To: Date: Wed, 21 Sep 2011 11:26:04 +0100 Message-Id: <1316600766-5541-7-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1316600766-5541-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1316600766-5541-1-git-send-email-stefanha@linux.vnet.ibm.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.196.100.163 Cc: Jan Kiszka , Anthony Liguori , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 6/8] Abort on thread layer errors 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 From: Jan Kiszka Makes it easier to catch the bug in gdb as there is no need to set an explicit breakpoint. Signed-off-by: Jan Kiszka Signed-off-by: Stefan Hajnoczi --- qemu-thread-posix.c | 2 +- qemu-thread-win32.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu-thread-posix.c b/qemu-thread-posix.c index 2bd02ef..ac3c0c9 100644 --- a/qemu-thread-posix.c +++ b/qemu-thread-posix.c @@ -22,7 +22,7 @@ static void error_exit(int err, const char *msg) { fprintf(stderr, "qemu: %s: %s\n", msg, strerror(err)); - exit(1); + abort(); } void qemu_mutex_init(QemuMutex *mutex) diff --git a/qemu-thread-win32.c b/qemu-thread-win32.c index a27332e..db8e744 100644 --- a/qemu-thread-win32.c +++ b/qemu-thread-win32.c @@ -24,7 +24,7 @@ static void error_exit(int err, const char *msg) NULL, err, 0, (LPTSTR)&pstr, 2, NULL); fprintf(stderr, "qemu: %s: %s\n", msg, pstr); LocalFree(pstr); - exit(1); + abort(); } void qemu_mutex_init(QemuMutex *mutex)