diff options
author | peter <peter@FreeBSD.org> | 1998-06-28 22:53:48 +0800 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-06-28 22:53:48 +0800 |
commit | 7d3188e6a37c1e197aca4130354119341f9c76e7 (patch) | |
tree | e67a017a99899ebd347d749b4f78030a4c98506c /comms/conserver | |
parent | c72c4897d952447943fd99f01838039716548cad (diff) | |
download | freebsd-ports-gnome-7d3188e6a37c1e197aca4130354119341f9c76e7.tar.gz freebsd-ports-gnome-7d3188e6a37c1e197aca4130354119341f9c76e7.tar.zst freebsd-ports-gnome-7d3188e6a37c1e197aca4130354119341f9c76e7.zip |
Another spin loop bug. On dropped network connections, console(8) can
also spin getting a 0 return from write(). (it's only testing for -1).
Diffstat (limited to 'comms/conserver')
-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; |