From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Stefan Hajnoczi Date: Wed, 21 Sep 2011 11:26:04 +0100 Message-Id: <1316600766-5541-7-git-send-email-stefanha@linux.vnet.ibm.com> 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> Subject: [Qemu-devel] [PATCH 6/8] Abort on thread layer errors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Jan Kiszka , Anthony Liguori , Stefan Hajnoczi 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) -- 1.7.5.4