changeset 110731:54e610201634

* src/sysdep.c (flush_pending_output): Remove code, does not do anything on any platform.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sun, 03 Oct 2010 07:43:17 -0700
parents 09a7eef06018
children 00fad82e2b50
files src/ChangeLog src/sysdep.c
diffstat 2 files changed, 4 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Oct 03 07:16:48 2010 -0700
+++ b/src/ChangeLog	Sun Oct 03 07:43:17 2010 -0700
@@ -1,5 +1,8 @@
 2010-10-03  Dan Nicolaescu  <dann@ics.uci.edu>
 
+	* sysdep.c (flush_pending_output): Remove code, does not do
+	anything on any platform.
+
 	Remove unused code.
 	* sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
 	select emulation, all systems support select.
--- a/src/sysdep.c	Sun Oct 03 07:16:48 2010 -0700
+++ b/src/sysdep.c	Sun Oct 03 07:43:17 2010 -0700
@@ -363,22 +363,7 @@
 void
 flush_pending_output (int channel)
 {
-#ifndef DOS_NT
-  /* If we try this, we get hit with SIGTTIN, because
-     the child's tty belongs to the child's pgrp. */
-#else
-#ifdef TCFLSH
-  ioctl (channel, TCFLSH, 1);
-#else
-#ifdef TIOCFLUSH
-  int zero = 0;
-  /* 3rd arg should be ignored
-     but some 4.2 kernels actually want the address of an int
-     and nonzero means something different.  */
-  ioctl (channel, TIOCFLUSH, &zero);
-#endif
-#endif
-#endif
+  /* FIXME: maybe this function should be removed */
 }
 
 /*  Set up the terminal at the other end of a pseudo-terminal that