aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorPaul Eggert2019-07-13 16:42:18 -0700
committerPaul Eggert2019-07-13 16:53:21 -0700
commit34810ab4f9990a8de1e503fdf6b485d8eeea1601 (patch)
treea97171120e27f65dfe9ed5c4cc6c59625ce24e8b /src/sysdep.c
parent9a34591ddd5ef481af5bad1fd0b76c39fce4e8e3 (diff)
downloademacs-34810ab4f9990a8de1e503fdf6b485d8eeea1601.tar.gz
emacs-34810ab4f9990a8de1e503fdf6b485d8eeea1601.zip
Avoid interleaving stderr lines when shutting down
* src/emacs.c (shut_down_emacs) [!DOS_NT]: Avoid interleaving to stderr in the usual case, by using a single write and by appending a newline. * src/sysdep.c (emacs_backtrace) [HAVE_BACKTRACE_SYMBOLS_FD]: Omit newline since shut_down_emacs now does that.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 9301405943b..f7478253a35 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2436,7 +2436,7 @@ emacs_backtrace (int backtrace_limit)
2436 2436
2437 if (npointers) 2437 if (npointers)
2438 { 2438 {
2439 emacs_write (STDERR_FILENO, "\nBacktrace:\n", 12); 2439 emacs_write (STDERR_FILENO, "Backtrace:\n", 11);
2440 backtrace_symbols_fd (buffer, npointers, STDERR_FILENO); 2440 backtrace_symbols_fd (buffer, npointers, STDERR_FILENO);
2441 if (bounded_limit < npointers) 2441 if (bounded_limit < npointers)
2442 emacs_write (STDERR_FILENO, "...\n", 4); 2442 emacs_write (STDERR_FILENO, "...\n", 4);