Commit 62a3fe29aa33651ca9b0af78dc5e1cf72ecd66be

Authored by aliguori
1 parent 809c130c

Replace exit() in oom_check with abort()

So that we can get a core dump with a stack trace.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6542 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
qemu-malloc.c
... ... @@ -27,7 +27,7 @@
27 27 static void *oom_check(void *ptr)
28 28 {
29 29 if (ptr == NULL)
30   - exit(13);
  30 + abort();
31 31 return ptr;
32 32 }
33 33  
... ...