summaryrefslogtreecommitdiffstats
path: root/sys/dev/sio/sio.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-03-28 05:39:53 +0000
committerache <ache@FreeBSD.org>1995-03-28 05:39:53 +0000
commitb5f6b1ec554f1add572fd85973b743ae80341ac1 (patch)
tree73e8dcf13c23ffaed9cb6567a32cad332cb32e2a /sys/dev/sio/sio.c
parent3fb870b9c60ec55bcedbd4aa843d3b6e293b2396 (diff)
downloadFreeBSD-src-b5f6b1ec554f1add572fd85973b743ae80341ac1.zip
FreeBSD-src-b5f6b1ec554f1add572fd85973b743ae80341ac1.tar.gz
Fix break recording for ttyinput
Diffstat (limited to 'sys/dev/sio/sio.c')
-rw-r--r--sys/dev/sio/sio.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 565bb19..d034bac 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.70 1995/02/28 23:21:33 ache Exp $
+ * $Id: sio.c,v 1.71 1995/03/16 18:12:04 bde Exp $
*/
#include "sio.h"
@@ -1577,8 +1577,10 @@ repeat:
recv_data = (u_char) *buf++;
if (line_status
& (LSR_BI | LSR_FE | LSR_OE | LSR_PE)) {
+ /* char must be 0 to detect */
+ /* break in ttyinput() */
if (line_status & LSR_BI)
- recv_data |= TTY_BI;
+ recv_data = TTY_BI;
if (line_status & LSR_FE)
recv_data |= TTY_FE;
if (line_status & LSR_OE)
OpenPOWER on IntegriCloud