From d29a9dae71395fccd419973e9c88f97af744581f Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Mon, 12 Jun 2017 16:39:15 +0200 Subject: [PATCH] Flush all output streams before aborting Maybe the stdout buffer still contains something interesting that should be flushed. * src/emacs-module.c (module_abort): Flush all output streams before aborting. --- src/emacs-module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emacs-module.c b/src/emacs-module.c index 650065d74b9..6af9474025d 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c @@ -1187,7 +1187,7 @@ module_abort (const char *format, ...) vfprintf (stderr, format, args); va_end (args); putc ('\n', stderr); - fflush (stderr); + fflush (NULL); emacs_abort (); } -- 2.39.2