]> git.eshelyaron.com Git - emacs.git/commit
Avoid interleaving stderr in a few cases
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Jul 2019 16:39:09 +0000 (09:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 13 Jul 2019 23:53:21 +0000 (16:53 -0700)
commita8ffbb20da67b20a85ddca38e20c609144c3bef3
tree3ce64362d7d1a8b14f0a5ea4286ea6af27109de2
parent3767628dc534e64cdc21bdff16d5dd4726feacd2
Avoid interleaving stderr in a few cases

* src/sysdep.c (buferr): New static var.
(init_standard_fds) [_PC_PIPE_BUF]: Initialize it.
(errstream, errputc, verrprintf, errwrite): New functions.
(close_output_streams): Check buferr status too.
* src/xdisp.c: Include sysstdio.h instead of stdio.h.
(message_to_stderr, vmessage): Use the new functions
to avoid interleaving stderr.
src/sysdep.c
src/sysstdio.h
src/xdisp.c