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
This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history]
/
usr.bin
/
tip
/
tipout.c
diff --git
a/usr.bin/tip/tipout.c
b/usr.bin/tip/tipout.c
index
7f0cba9
..
37edea8
100644
(file)
--- a/
usr.bin/tip/tipout.c
+++ b/
usr.bin/tip/tipout.c
@@
-132,7
+132,7
@@
tipout()
cnt = read(FD, buf, BUFSIZ);
if (cnt <= 0) {
/* lost carrier */
cnt = read(FD, buf, BUFSIZ);
if (cnt <= 0) {
/* lost carrier */
- if (
cnt < 0 && errno == EIO
) {
+ if (
(cnt < 0 && errno == EIO) || (cnt == 0)
) {
sigblock(sigmask(SIGTERM));
intTERM();
/*NOTREACHED*/
sigblock(sigmask(SIGTERM));
intTERM();
/*NOTREACHED*/