qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6542] Replace exit() in oom_check with abort()


From: Anthony Liguori
Subject: [Qemu-devel] [6542] Replace exit() in oom_check with abort()
Date: Fri, 06 Feb 2009 00:19:43 +0000

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 <address@hidden>

Modified Paths:
--------------
    trunk/qemu-malloc.c

Modified: trunk/qemu-malloc.c
===================================================================
--- trunk/qemu-malloc.c 2009-02-06 00:15:19 UTC (rev 6541)
+++ trunk/qemu-malloc.c 2009-02-06 00:19:42 UTC (rev 6542)
@@ -27,7 +27,7 @@
 static void *oom_check(void *ptr)
 {
     if (ptr == NULL)
-        exit(13);
+        abort();
     return ptr;
 }
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]