From 2dbe05d01a0ce216fa1266074df162ddcd9f9d75 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 20 Jun 2019 00:35:41 -0700 Subject: [PATCH] Remove no-longer-needed fflushes of stderr * src/gmalloc.c (mabort) [GC_MCHECK && !__GNU_LIBRARY__]: * src/term.c (vfatal): Remove fflush (stderr) when it is now a no-op because newline automatically flushes stderr. --- src/gmalloc.c | 1 - src/term.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/gmalloc.c b/src/gmalloc.c index 779cdb36d67..bac3ffb7e5e 100644 --- a/src/gmalloc.c +++ b/src/gmalloc.c @@ -2013,7 +2013,6 @@ mabort (enum mcheck_status status) __libc_fatal (msg); #else fprintf (stderr, "mcheck: %s\n", msg); - fflush (stderr); emacs_abort (); #endif } diff --git a/src/term.c b/src/term.c index 6a8fc2ee932..ce06e1cd4e5 100644 --- a/src/term.c +++ b/src/term.c @@ -4402,7 +4402,6 @@ vfatal (const char *str, va_list ap) vfprintf (stderr, str, ap); if (!(strlen (str) > 0 && str[strlen (str) - 1] == '\n')) fprintf (stderr, "\n"); - fflush (stderr); exit (1); } -- 2.39.2