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.
This commit is contained in:
Philipp Stephani 2017-06-12 16:39:15 +02:00
parent 655439b71e
commit d29a9dae71

View file

@ -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 ();
}