From 2f346fd7e050c6e4f518f642fa69d742ebebaac4 Mon Sep 17 00:00:00 2001 From: Palmer Dabbelt Date: Wed, 26 Apr 2017 09:13:49 -0700 Subject: [PATCH] Don't spin on the remote bitbang reads --- riscv/remote_bitbang.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/riscv/remote_bitbang.cc b/riscv/remote_bitbang.cc index 9d0ca90..888032e 100644 --- a/riscv/remote_bitbang.cc +++ b/riscv/remote_bitbang.cc @@ -157,7 +157,7 @@ void remote_bitbang_t::execute_commands() 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); -- 2.30.2