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:
Bananymous 2023-06-05 18:23:19 +03:00
parent cf88142856
commit a7dc7ecb90
1 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,9 @@ extern "C" void _fini();
void abort(void)
{
ASSERT_NOT_REACHED();
fflush(nullptr);
fprintf(stderr, "abort()\n");
exit(1);
}
void exit(int status)