summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-06-28 14:29:55 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-06-28 14:29:55 +0000
commit35a4e1f98c24e75337d2968be24dae502ef19052 (patch)
treef3ee75fe1e7e1e5dfa858c22834e4046eb40848d /comms
parentCatch a 0 return from read() on carrier loss, otherwise it spins in an (diff)
Attempt to catch another spin in the client on a zero return from read().
Notes
Notes: svn path=/head/; revision=11581
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 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;