From d2ff8e3cbeb8a8eb5b6c1adc5f624572210afee0 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Mon, 20 Jul 2020 14:45:51 +0200
Subject: [PATCH] Polished comment in send_resp()

---
 rigctl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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);   
-- 
2.45.2