minicom/minicom-2.2-ttyerror.patch
2007-07-25 13:34:06 +00:00

12 lines
457 B
Diff

--- minicom-2.2/src/ipc.c.ttyerror 2005-10-31 11:31:38.000000000 +0100
+++ minicom-2.2/src/ipc.c 2007-07-25 15:22:28.000000000 +0200
@@ -62,6 +62,8 @@ int check_io(int fd1, int fd2, int tmout
if (!i && portfd_is_socket && portfd == fd1)
term_socket_close();
#endif /* USE_SOCKET */
+ if (i <= 0 && !portfd_is_socket && portfd == fd1)
+ leave(_("Read error on tty device."));
}
buf[i > 0 ? i : 0] = 0;
if (buflen)