提交 62a3fe29 编写于 作者: A aliguori

Replace exit() in oom_check with abort()

So that we can get a core dump with a stack trace.
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6542 c046a42c-6fe2-441c-8c8c-71466251a162
上级 809c130c
......@@ -27,7 +27,7 @@
static void *oom_check(void *ptr)
{
if (ptr == NULL)
exit(13);
abort();
return ptr;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册