diff options
author | peter <peter@FreeBSD.org> | 1998-06-28 22:29:55 +0800 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-06-28 22:29:55 +0800 |
commit | 4aa367ac05c4eb3b95d8e309b2915b5429b6792a (patch) | |
tree | a62db2946d3b4d2f2916170fdc54e6a3dbf2614f /comms | |
parent | 89a764d14d65407386bad508ecf6a65e7c48215a (diff) | |
download | freebsd-ports-gnome-4aa367ac05c4eb3b95d8e309b2915b5429b6792a.tar.gz freebsd-ports-gnome-4aa367ac05c4eb3b95d8e309b2915b5429b6792a.tar.zst freebsd-ports-gnome-4aa367ac05c4eb3b95d8e309b2915b5429b6792a.zip |
Attempt to catch another spin in the client on a zero return from read().
Diffstat (limited to 'comms')
-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 5a51b2b6ff42..00a372ca9dd8 100644 --- a/comms/conserver/files/patch-af +++ b/comms/conserver/files/patch-af @@ -26,3 +26,10 @@ + (void)tcsetattr(0, TCSANOW, &o_tios); #else #if USE_TERMIO +@@ -950,5 +950,5 @@ + iRem = iMax; + i = 0; +- while (0 < (nr = read(s, pcBuf+i, iRem))) { ++ while (0 <= (nr = read(s, pcBuf+i, iRem))) { + i += nr; + iRem -= nr; |