diff options
Diffstat (limited to 'arch/sandbox/lib/common.c')
-rw-r--r-- | arch/sandbox/lib/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sandbox/lib/common.c b/arch/sandbox/lib/common.c index 21ec720d7c..ee2a93ce54 100644 --- a/arch/sandbox/lib/common.c +++ b/arch/sandbox/lib/common.c @@ -97,7 +97,7 @@ int linux_tstc(int fd) /* * We set the timeout here to 100us, because otherwise * U-Boot would eat all cpu resources while waiting - * for input. + * for input. */ ret = select(fd + 1, &rfds, NULL, NULL, &tv); @@ -166,7 +166,7 @@ int linux_read(int fd, void *buf, size_t count) reset_cpu(0); } else if (ret == -1) { if (errno == EAGAIN) - usleep(100); + return -errno; else if (errno == EINTR) continue; else { |