summaryrefslogtreecommitdiffstats
path: root/comms
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-06-28 14:53:48 +0000
committerpeter <peter@FreeBSD.org>1998-06-28 14:53:48 +0000
commit7d3188e6a37c1e197aca4130354119341f9c76e7 (patch)
treee67a017a99899ebd347d749b4f78030a4c98506c /comms
parentc72c4897d952447943fd99f01838039716548cad (diff)
downloadFreeBSD-ports-7d3188e6a37c1e197aca4130354119341f9c76e7.zip
FreeBSD-ports-7d3188e6a37c1e197aca4130354119341f9c76e7.tar.gz
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')
-rw-r--r--comms/conserver/files/patch-af7
1 files changed, 7 insertions, 0 deletions
diff --git a/comms/conserver/files/patch-af b/comms/conserver/files/patch-af
index 00a372c..9604436 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;
OpenPOWER on IntegriCloud