xon/xoff flow control should be off in raw mode.
authorRobert Elz <kre@ucbvax.Berkeley.EDU>
Fri, 1 Feb 1985 10:41:59 +0000 (02:41 -0800)
committerRobert Elz <kre@ucbvax.Berkeley.EDU>
Fri, 1 Feb 1985 10:41:59 +0000 (02:41 -0800)
from net.bugs.4bsd newsitem by sun!gnu

SCCS-vsn: sys/kern/tty_pty.c 6.9

usr/src/sys/kern/tty_pty.c

index 7ca0c20..190af0c 100644 (file)
@@ -1,4 +1,4 @@
-/*     tty_pty.c       6.8     84/12/20        */
+/*     tty_pty.c       6.9     85/01/31        */
 
 /*
  * Pseudo-teletype Driver
 
 /*
  * Pseudo-teletype Driver
@@ -446,7 +446,8 @@ ptyioctl(dev, cmd, data, flag)
        error = ttioctl(tp, cmd, data, flag);
        if (error < 0)
                error = ENOTTY;
        error = ttioctl(tp, cmd, data, flag);
        if (error < 0)
                error = ENOTTY;
-       { int stop = (tp->t_stopc == ('s'&037) &&
+       { int stop = ((tp->t_flags & RAW) == 0 &&
+                     tp->t_stopc == ('s'&037) &&
                      tp->t_startc == ('q'&037));
        if (pti->pt_flags & PF_NOSTOP) {
                if (stop) {
                      tp->t_startc == ('q'&037));
        if (pti->pt_flags & PF_NOSTOP) {
                if (stop) {