diff options
-rw-r--r-- | comms/conserver/files/patch-af | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/comms/conserver/files/patch-af b/comms/conserver/files/patch-af index 00a372ca9dd8..96044368ca10 100644 --- a/comms/conserver/files/patch-af +++ b/comms/conserver/files/patch-af @@ -26,6 +26,13 @@ + (void)tcsetattr(0, TCSANOW, &o_tios); #else #if USE_TERMIO +@@ -478,5 +478,5 @@ + + while (0 != iLen) { +- if (-1 == (nr = write(fd, pcBuf, iLen))) { ++ if (0 <= (nr = write(fd, pcBuf, iLen))) { + c2cooked(); + fprintf(stderr, "%s: lost connection\n", progname); @@ -950,5 +950,5 @@ iRem = iMax; i = 0; |