mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 05:21:55 -06:00
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
This commit is contained in:
parent
809c130cef
commit
62a3fe29aa
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@
|
||||||
static void *oom_check(void *ptr)
|
static void *oom_check(void *ptr)
|
||||||
{
|
{
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
exit(13);
|
abort();
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue