mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-03-25 13:17:43 +00:00
added debug output to see whether we are getting data back from
java side.
This commit is contained in:
parent
eab6dafcc7
commit
f5c3ea024e
@ -224,6 +224,7 @@ int monitor_poll()
|
||||
break;
|
||||
}
|
||||
bytes=read(c->socket,&c->line[c->line_length],1);
|
||||
if (bytes>0) WHYF("Read monitor byte 0x%02x",c->line[c->line_length]);
|
||||
if (bytes==-1) {
|
||||
switch(errno) {
|
||||
case EAGAIN: case EINTR:
|
||||
@ -243,7 +244,7 @@ int monitor_poll()
|
||||
}
|
||||
}
|
||||
}
|
||||
c->line_length+=bytes;
|
||||
if (bytes>0) c->line_length+=bytes;
|
||||
if (c->line[c->line_length-1]=='\n') {
|
||||
/* got command */
|
||||
c->line[c->line_length]=0; /* trim new line for easier parsing */
|
||||
|
Loading…
x
Reference in New Issue
Block a user