projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
return EWOULDBLOCK on read w/ no carrier or NBIO in raw mode
[unix-history]
/
usr
/
src
/
sys
/
kern
/
tty.c
diff --git
a/usr/src/sys/kern/tty.c
b/usr/src/sys/kern/tty.c
index
249f92e
..
e2e9733
100644
(file)
--- a/
usr/src/sys/kern/tty.c
+++ b/
usr/src/sys/kern/tty.c
@@
-1,4
+1,4
@@
-/* tty.c 6.
3
83/09/25 */
+/* tty.c 6.
4
83/09/25 */
#include "../machine/reg.h"
#include "../machine/reg.h"
@@
-1045,7
+1045,7
@@
loop:
if ((tp->t_state&TS_CARR_ON) == 0 ||
(tp->t_state&TS_NBIO)) {
splx(s);
if ((tp->t_state&TS_CARR_ON) == 0 ||
(tp->t_state&TS_NBIO)) {
splx(s);
- return (
0
);
+ return (
EWOULDBLOCK
);
}
sleep((caddr_t)&tp->t_rawq, TTIPRI);
splx(s);
}
sleep((caddr_t)&tp->t_rawq, TTIPRI);
splx(s);