diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-11-09 18:55:46 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-11-09 18:55:46 +0000 |
commit | 487f77d82dabbdf9d41cb0add177c780c704f5e0 (patch) | |
tree | 0ca423ca03b5959f3453189bcaeadb6884549312 /sys | |
parent | fe30aa3bf9aafda9b46d6d6e46f0254733897f46 (diff) |
Implement CREAD
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/tty.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index bca0d5eb398..611fae87200 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.17 1996/11/09 18:46:54 tholo Exp $ */ +/* $OpenBSD: tty.c,v 1.18 1996/11/09 18:55:45 tholo Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -233,6 +233,11 @@ ttyinput(c, tp) add_tty_randomness(tp->t_dev, c); /* + * If receiver is not enable, drop it. + */ + if (!ISSET(tp->t_cflag, CREAD)) + return (0); + /* * If input is pending take it first. */ lflag = tp->t_lflag; |