From d8294ff945902faf1ac26c3ad5cabef26e01ed8f Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Wed, 24 Jul 2013 14:27:41 -0700 Subject: Yes, getting 0 bytes from a file is fine; it means it's EOF... --- src/Input.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Input.cc b/src/Input.cc index ebcffb3..fafa649 100644 --- a/src/Input.cc +++ b/src/Input.cc @@ -249,7 +249,7 @@ ssize_t Balau::Input::read(void * buf, size_t count) throw (GeneralException) { Task::operationYield(&cbResults->evt, Task::INTERRUPTIBLE); case cbResults_t::READ: result = cbResults->result; - if (result > 0) { + if (result >= 0) { rseek(result, SEEK_CUR); } else { char str[4096]; -- cgit v1.2.3