1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00
emacs/lib-src
Paul Eggert 2f985977f6 Fix emacsclient hang when backgrounded
Problem reported by Kaushal Modi in:
https://lists.gnu.org/r/emacs-devel/2018-12/msg00083.html
The tcdrain call replaced an fdatasync call which had no
effect on the tty, so removing it entirely shouldn’t cause
problems.  The fdatasync call replaced an fsync call which
also had no effect on the tty, and the fsync call seems to be
badly-merged revenant of emacsclient’s old (circa 2004) way of
communicating to and from Emacs via FILE * streams, where
fsync was apparently needed when talking to sockets.
* lib-src/emacsclient.c [!DOS_NT]: Don’t include termios.h.
(flush_stdout): Remove.  All callers removed.
(main): Do not drain the tty after "Waiting for Emacs..."
message.  There should be no need to drain, and draining it
might send us a SIGTTOU.  Do not fflush stdout just before
exiting, as exiting does that for us.
2018-12-06 10:48:04 -08:00
..
ChangeLog.1 Update copyright year to 2018 2018-01-01 00:57:59 -08:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
ctags.c Port ctags+etags build to Sun C 5.12. 2014-05-18 11:57:04 -07:00
ebrowse.c Port --enable-gcc-warnings to GCC 8 2018-04-28 16:56:48 -07:00
emacsclient.c Fix emacsclient hang when backgrounded 2018-12-06 10:48:04 -08:00
etags.c Make mini-gmp safe for --enable-gcc-warnings 2018-08-12 11:13:15 -07:00
hexl.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00
make-docfile.c Port --enable-gcc-warnings to GCC 8 2018-04-28 16:56:48 -07:00
Makefile.in Use tcdrain, not fdatasync, to drain ttys 2018-12-02 23:55:01 -08:00
movemail.c Port --enable-gcc-warnings to GCC 8 2018-04-28 16:56:48 -07:00
ntlib.c Fix the MS-Windows build as followup to Gnulib regex import 2018-08-06 17:50:55 +03:00
ntlib.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
pop.c ; Fix last change: only MinGW runtime 5.0.2 and later needs that. 2018-07-28 17:21:53 +03:00
pop.h Update copyright year to 2018 2018-01-01 00:57:59 -08:00
profile.c Move current_timespec decl to timespec.h 2018-09-16 21:28:08 -07:00
rcs2log Fix copyright years by hand 2018-01-01 01:02:09 -08:00
README
update-game-score.c Update copyright year to 2018 2018-01-01 00:57:59 -08:00

This directory contains the source code for the architecture-dependent
files that go in ${archlibdir}.  At present, these are mostly utility
programs used by GNU Emacs.