This commit was manufactured by cvs2svn to create tag 'FreeBSD-release/1.0'.
[unix-history] / usr.bin / tip / tipout.c
index 7f0cba9..37edea8 100644 (file)
@@ -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*/