diff options
author | 1996-11-11 04:28:16 +0000 | |
---|---|---|
committer | 1996-11-11 04:28:16 +0000 | |
commit | acf4d24080f149924bc07bfa5246c0d8548fe7d0 (patch) | |
tree | 2b14bcf1497e2fdede7118d3ef15211ff2629ea1 /sys/kern/tty.c | |
parent | Add another Cw (diff) | |
download | wireguard-openbsd-acf4d24080f149924bc07bfa5246c0d8548fe7d0.tar.xz wireguard-openbsd-acf4d24080f149924bc07bfa5246c0d8548fe7d0.zip |
Flush input and output in receipt of break (unless break is ignored)
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 611fae87200..f6fb3acec5b 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.18 1996/11/09 18:55:45 tholo Exp $ */ +/* $OpenBSD: tty.c,v 1.19 1996/11/11 04:28:16 tholo Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -263,7 +263,8 @@ ttyinput(c, tp) if (ISSET(error, TTY_FE) && !c) { /* Break. */ if (ISSET(iflag, IGNBRK)) goto endcase; - else if (ISSET(iflag, BRKINT) && + ttyflush(tp, FREAD | FWRITE); + if (ISSET(iflag, BRKINT) && ISSET(lflag, ISIG) && (cc[VINTR] != _POSIX_VDISABLE)) c = cc[VINTR]; |