forked from Bananymous/banan-os
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
5425394880
commit
480842a203
|
@ -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