Commit 9de940b5 authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

* src/sysdep.c (flush_pending_output): Remove code, does not do

anything on any platform.
parent 57507bf8
2010-10-03 Dan Nicolaescu <dann@ics.uci.edu> 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. Remove unused code.
* sysdep.c (select_alarm, sys_select, read_input_waiting): Remove * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove
select emulation, all systems support select. select emulation, all systems support select.
......
...@@ -363,22 +363,7 @@ wait_for_termination (int pid) ...@@ -363,22 +363,7 @@ wait_for_termination (int pid)
void void
flush_pending_output (int channel) flush_pending_output (int channel)
{ {
#ifndef DOS_NT /* FIXME: maybe this function should be removed */
/* 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
} }
/* Set up the terminal at the other end of a pseudo-terminal that /* Set up the terminal at the other end of a pseudo-terminal that
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment