LibC: abort now prints 'abort()' and exits
we used to call assert in abort which then recursively called abort again.
This commit is contained in:
parent
cf88142856
commit
a7dc7ecb90
|
@ -11,7 +11,9 @@ extern "C" void _fini();
|
||||||
|
|
||||||
void abort(void)
|
void abort(void)
|
||||||
{
|
{
|
||||||
ASSERT_NOT_REACHED();
|
fflush(nullptr);
|
||||||
|
fprintf(stderr, "abort()\n");
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void exit(int status)
|
void exit(int status)
|
||||||
|
|
Loading…
Reference in New Issue