diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-20 19:44:24 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-12-20 19:44:24 +0000 |
commit | d842ee6c3c3ff5009b9233a8c19837461daf4b88 (patch) | |
tree | afcfd9b054ba42d42ef4ef440dddc5f8558b6289 /sys | |
parent | 1593020af5091da344501e02e72830dbcdb2ff88 (diff) |
Clear error before jumping back to the input loop. If error was set
to EWOULDBLOCK it would otherwise not get cleared; Jim Geovedi
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 38f37ff1090..1f3011deb46 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.56 2002/12/12 04:17:14 deraadt Exp $ */ +/* $OpenBSD: tty.c,v 1.57 2002/12/20 19:44:23 millert Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -1557,6 +1557,7 @@ sleep: } if (error && error != EWOULDBLOCK) goto out; + error = 0; goto loop; } read: |