summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_termios.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_termios.cc')
-rw-r--r--winsup/cygwin/fhandler_termios.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc
index 6e0ad6777..22650ec16 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -367,3 +367,10 @@ fhandler_termios::lseek (_off64_t, int)
set_errno (ESPIPE);
return -1;
}
+
+void
+fhandler_termios::sigflush ()
+{
+ if (!(get_ttyp ()->ti.c_lflag & NOFLSH))
+ tcflush (TCIFLUSH);
+}