summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-12-20 19:44:24 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-12-20 19:44:24 +0000
commitd842ee6c3c3ff5009b9233a8c19837461daf4b88 (patch)
treeafcfd9b054ba42d42ef4ef440dddc5f8558b6289 /sys
parent1593020af5091da344501e02e72830dbcdb2ff88 (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.c3
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: