diff options
| author | Dan Nicolaescu | 2010-10-03 07:43:17 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-10-03 07:43:17 -0700 |
| commit | 9de940b59e37677d7347532b98c63f92aa74ec0c (patch) | |
| tree | b89d3772053ec56f05902a33675c5c296e303755 /src | |
| parent | 57507bf8b5e37c0d9355aaafbf5abb46998af392 (diff) | |
| download | emacs-9de940b59e37677d7347532b98c63f92aa74ec0c.tar.gz emacs-9de940b59e37677d7347532b98c63f92aa74ec0c.zip | |
* src/sysdep.c (flush_pending_output): Remove code, does not do
anything on any platform.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/sysdep.c | 17 |
2 files changed, 4 insertions, 16 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2ec9f2900f7..ebec6b3ce82 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-10-03 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * sysdep.c (flush_pending_output): Remove code, does not do | ||
| 4 | anything on any platform. | ||
| 5 | |||
| 3 | Remove unused code. | 6 | Remove unused code. |
| 4 | * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove | 7 | * sysdep.c (select_alarm, sys_select, read_input_waiting): Remove |
| 5 | select emulation, all systems support select. | 8 | select emulation, all systems support select. |
diff --git a/src/sysdep.c b/src/sysdep.c index 091b1b1e513..027ebef9576 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -363,22 +363,7 @@ wait_for_termination (int pid) | |||
| 363 | void | 363 | void |
| 364 | flush_pending_output (int channel) | 364 | flush_pending_output (int channel) |
| 365 | { | 365 | { |
| 366 | #ifndef DOS_NT | 366 | /* FIXME: maybe this function should be removed */ |
| 367 | /* If we try this, we get hit with SIGTTIN, because | ||
| 368 | the child's tty belongs to the child's pgrp. */ | ||
| 369 | #else | ||
| 370 | #ifdef TCFLSH | ||
| 371 | ioctl (channel, TCFLSH, 1); | ||
| 372 | #else | ||
| 373 | #ifdef TIOCFLUSH | ||
| 374 | int zero = 0; | ||
| 375 | /* 3rd arg should be ignored | ||
| 376 | but some 4.2 kernels actually want the address of an int | ||
| 377 | and nonzero means something different. */ | ||
| 378 | ioctl (channel, TIOCFLUSH, &zero); | ||
| 379 | #endif | ||
| 380 | #endif | ||
| 381 | #endif | ||
| 382 | } | 367 | } |
| 383 | 368 | ||
| 384 | /* Set up the terminal at the other end of a pseudo-terminal that | 369 | /* Set up the terminal at the other end of a pseudo-terminal that |