projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add -a option, minor cleanups
[unix-history]
/
usr
/
src
/
usr.bin
/
telnet
/
utilities.c
diff --git
a/usr/src/usr.bin/telnet/utilities.c
b/usr/src/usr.bin/telnet/utilities.c
index
2e5c5de
..
1ff6c3d
100644
(file)
--- a/
usr/src/usr.bin/telnet/utilities.c
+++ b/
usr/src/usr.bin/telnet/utilities.c
@@
-16,7
+16,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)utilities.c 1.
8
(Berkeley) %G%";
+static char sccsid[] = "@(#)utilities.c 1.
11
(Berkeley) %G%";
#endif /* not lint */
#define TELOPTS
#endif /* not lint */
#define TELOPTS
@@
-27,6
+27,8
@@
static char sccsid[] = "@(#)utilities.c 1.8 (Berkeley) %G%";
#include "general.h"
#include "general.h"
+#include "fdset.h"
+
#include "ring.h"
#include "defines.h"
#include "ring.h"
#include "defines.h"
@@
-113,10
+115,12
@@
int length;
length -= BYTES_PER_LINE;
offset += BYTES_PER_LINE;
if (length < 0) {
length -= BYTES_PER_LINE;
offset += BYTES_PER_LINE;
if (length < 0) {
+ fflush(NetTrace);
return;
}
/* find next unique line */
}
return;
}
/* find next unique line */
}
+ fflush(NetTrace);
}
}
@@
-229,6
+233,11
@@
SetForExit()
if (In3270) {
Finish3270();
}
if (In3270) {
Finish3270();
}
+#else /* defined(TN3270) */
+ do {
+ telrcv(); /* Process any incoming data */
+ EmptyTerminal();
+ } while (ring_full_count(&netiring)); /* While there is any */
#endif /* defined(TN3270) */
setcommandmode();
fflush(stdout);
#endif /* defined(TN3270) */
setcommandmode();
fflush(stdout);