From: c vw <dl1ycf@darc.de>
Date: Mon, 20 Jul 2020 12:45:51 +0000 (+0200)
Subject: Polished comment in send_resp()
X-Git-Url: https://git.rkrishnan.org/Site/Content/module-simplejson.html?a=commitdiff_plain;h=d2ff8e3cbeb8a8eb5b6c1adc5f624572210afee0;p=pihpsdr.git

Polished comment in send_resp()
---

diff --git a/rigctl.c b/rigctl.c
index 2da29d0..e61b530 100644
--- a/rigctl.c
+++ b/rigctl.c
@@ -551,9 +551,9 @@ void send_resp (int fd,char * msg) {
   int count=0;
   
 //
-// We have to make sure that send_resp quickly returns
-// if something goes wrong, because it is executed in the
-// GTK idle loop
+// Possibly, the channel is already closed. In this case
+// give up (rc < 0) or at most try a few times (rc == 0)
+// since we are in the GTK idle loop
 //
   while(length>0) {
     rc=write(fd,msg,length);