summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
Diffstat (limited to 'i386')
-rw-r--r--i386/i386at/com.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/i386/i386at/com.c b/i386/i386at/com.c
index e1ba71a..6edbca0 100644
--- a/i386/i386at/com.c
+++ b/i386/i386at/com.c
@@ -618,7 +618,7 @@ void
comstart(tp)
struct tty *tp;
{
- char nch;
+ int nch;
#if 0
int i;
#endif
@@ -654,6 +654,8 @@ comst_4++;
}
#else
nch = getc(&tp->t_outq);
+ if (nch == -1)
+ return;
if ((nch & 0200) && ((tp->t_flags & LITOUT) == 0)) {
timeout((timer_func_t *)ttrstrt, (char *)tp, (nch & 0x7f) + 6);
tp->t_state |= TS_TIMEOUT;