Skip to contentSkip to conversation

[6542] Replace exit() in oom_check with abort()

Qemu-devel Anthony Liguori 1 participant 1 message Feb 6, 2009

lore
Share & tools
lore
#0 lore raw

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.

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;
 }