bugfix: read(2) returns 0 on EOF

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1925 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-11-13 00:17:25 +00:00
parent 97299ba370
commit 61ab977f01

View File

@ -80,7 +80,7 @@ ssize_t SocketComm::safe_read(int fd, void *buf, size_t count)
}
count -= ret;
cbuf += ret;
} while (count);
} while (ret && count);
return cbuf - (const char *) buf;
}