From: Paul Eggert Date: Thu, 20 Jun 2019 07:35:41 +0000 (-0700) Subject: Remove no-longer-needed fflushes of stderr X-Git-Tag: emacs-27.0.90~2371 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2dbe05d01a0ce216fa1266074df162ddcd9f9d75;p=emacs.git 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. --- 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); }