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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user