Small change for telnet buffering

This commit is contained in:
Michiel Broek 2004-02-02 21:21:25 +00:00
parent a5998e7721
commit 7ed40f8412

View File

@ -108,11 +108,8 @@ void telout_filter(int fdi, int fdo)
Syslog('s', "$telout_filter: write failed"); Syslog('s', "$telout_filter: write failed");
exit(MBERR_TTYIO_ERROR); exit(MBERR_TTYIO_ERROR);
} }
tcflush(fdo, TCOFLUSH);
} }
tcflush(fdi, TCIFLUSH);
tcflush(fdo, TCOFLUSH);
Syslog('s', "telout_filter: finished rc=%d", rc); Syslog('s', "telout_filter: finished rc=%d", rc);
exit(0); exit(0);
} }
@ -172,11 +169,8 @@ void telin_filter(int fdo, int fdi)
exit(MBERR_TTYIO_ERROR); exit(MBERR_TTYIO_ERROR);
} }
} }
tcflush(fdo, TCOFLUSH);
} }
tcflush(fdi, TCIFLUSH);
tcflush(fdo, TCOFLUSH);
Syslog('s', "telin_filter: finished rc=%d", rc); Syslog('s', "telin_filter: finished rc=%d", rc);
exit(0); exit(0);