From 8c0f1dcdd4a05a002ae01f586bc0b5386db903d4 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sat, 10 Feb 2018 19:53:27 +0200 Subject: Do fflush(NULL) before abort(), for GLIBC 2.27. --- msg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'msg.c') diff --git a/msg.c b/msg.c index b4746988..20732bcd 100644 --- a/msg.c +++ b/msg.c @@ -101,6 +101,8 @@ err(bool isfatal, const char *s, const char *emsg, va_list argp) if (isfatal) { #ifdef GAWKDEBUG + // GLIBC 2.27 doesn't necessarily flush on abort. Sigh. + fflush(NULL); abort(); #endif gawk_exit(EXIT_FATAL); -- cgit v1.2.3