aboutsummaryrefslogtreecommitdiffstats
path: root/msg.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-02-10 19:53:27 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-02-10 19:53:27 +0200
commit8c0f1dcdd4a05a002ae01f586bc0b5386db903d4 (patch)
tree675a1989e78731be2ed770ee886480ec0a346c9a /msg.c
parent29141665ddc8055d197652e59a512147f1dcf574 (diff)
downloadegawk-8c0f1dcdd4a05a002ae01f586bc0b5386db903d4.tar.gz
egawk-8c0f1dcdd4a05a002ae01f586bc0b5386db903d4.tar.bz2
egawk-8c0f1dcdd4a05a002ae01f586bc0b5386db903d4.zip
Do fflush(NULL) before abort(), for GLIBC 2.27.
Diffstat (limited to 'msg.c')
-rw-r--r--msg.c2
1 files changed, 2 insertions, 0 deletions
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);