• Paul Eggert's avatar
    Use tcdrain, not fdatasync, to drain ttys · f5090b91
    Paul Eggert authored
    fdatasync is for storage devices, not ttys.
    * admin/merge-gnulib (GNULIB_MODULES): Remove fdatasync.
    * lib/fdatasync.c, m4/fdatasync.m4: Remove.
    * lib-src/Makefile.in (LIB_FDATASYNC):
    * src/Makefile.in (LIB_FDATASYNC):
    Remove.  All uses removed.
    * lib-src/emacsclient.c [!DOS_NT]:
    Include <termios.h>, for tcdrain.
    * lib-src/emacsclient.c (flush_stdout):
    * src/sysdep.c (reset_sys_modes): On ttys, use tcdrain instead
    of fdatasync (except don’t use either function if DOS_NT).
    * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
emacsclient.c 53.1 KB