projects
/
pihpsdr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1551a8
)
Polished comment in send_resp()
author
c vw
<dl1ycf@darc.de>
Mon, 20 Jul 2020 12:45:51 +0000
(14:45 +0200)
committer
c vw
<dl1ycf@darc.de>
Mon, 20 Jul 2020 12:45:51 +0000
(14:45 +0200)
rigctl.c
patch
|
blob
|
history
diff --git
a/rigctl.c
b/rigctl.c
index 2da29d0ffedc357600aa26eda51c91b37444e040..e61b530e93ef3ca4f3b159f731ff39e6e92bbdd1 100644
(file)
--- 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);