[6542] Replace exit() in oom_check with abort()
Revision: 6542
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6542 Author: aliguori Date: 2009-02-06 00:19:42 +0000 (Fri, 06 Feb 2009)
Log Message:
-----------
Replace exit() in oom_check with abort()
So that we can get a core dump with a stack trace.
Signed-off-by Anthony Liguori <[email protected]>
Modified Paths:
--------------
trunk/qemu-malloc.c
Modified: trunk/qemu-malloc.c
===================================================================
qemu-malloc.c +1 -1
@@ -27,7 +27,7 @@static void *oom_check (void *ptr) {if (ptr ==NULL ) -exit (13 ); +abort ();return ptr; }