mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-23 22:52:23 +03:00
remove incorrect fflush from assert failure handler
assert is not specified to flush open stdio streams, and doing so can block indefinitely waiting for a lock already held or an output operation to a file that can't accept more output until an unsatisfiable condition is met.
This commit is contained in:
parent
da845d52c5
commit
47baa0301f
@ -4,6 +4,5 @@
|
||||
_Noreturn void __assert_fail(const char *expr, const char *file, int line, const char *func)
|
||||
{
|
||||
fprintf(stderr, "Assertion failed: %s (%s: %s: %d)\n", expr, file, func, line);
|
||||
fflush(NULL);
|
||||
abort();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user