if (recv_end == -1) {
if (errno == EAGAIN) {
- // We'll try again the next call.
+ break;
} else {
fprintf(stderr, "remote_bitbang failed to read on socket: %s (%d)\n",
strerror(errno), errno);
abort();
}
}
-
+
if (quit) {
fprintf(stderr, "Remote Bitbang received 'Q'\n");
}
-
+
if (recv_end == 0 || quit) {
// The remote disconnected.
fprintf(stderr, "Received nothing. Quitting.\n");