dont reset oki line discipline
authorBill Joy <bill@ucbvax.Berkeley.EDU>
Sun, 13 Jul 1980 11:01:17 +0000 (03:01 -0800)
committerBill Joy <bill@ucbvax.Berkeley.EDU>
Sun, 13 Jul 1980 11:01:17 +0000 (03:01 -0800)
SCCS-vsn: sys/kern/tty.c 3.10

usr/src/sys/kern/tty.c

index 2b2318e..c60b04e 100644 (file)
@@ -1,4 +1,4 @@
-/*     tty.c   3.    %G%     */
+/*     tty.c   3.10    %G%     */
 
 /*
  * general TTY subroutines
 
 /*
  * general TTY subroutines
@@ -90,7 +90,8 @@ register struct tty *tp;
        }
        tp->t_state &= ~WOPEN;
        tp->t_state |= ISOPEN;
        }
        tp->t_state &= ~WOPEN;
        tp->t_state |= ISOPEN;
-       tp->t_line = 0;         /* conservative */
+       if (tp->t_line != OKILDISC)
+               tp->t_line = 0;         /* conservative */
 }
 
 /*
 }
 
 /*
@@ -133,7 +134,8 @@ register struct tty *tp;
        tp->t_pgrp = 0;
        wflushtty(tp);
        tp->t_state = 0;
        tp->t_pgrp = 0;
        wflushtty(tp);
        tp->t_state = 0;
-       tp->t_line = 0;
+       if (tp->t_line != OKILDISC)
+               tp->t_line = 0;
 }
 
 /*
 }
 
 /*