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:
@ -80,7 +80,7 @@ ssize_t SocketComm::safe_read(int fd, void *buf, size_t count)
|
|||||||
}
|
}
|
||||||
count -= ret;
|
count -= ret;
|
||||||
cbuf += ret;
|
cbuf += ret;
|
||||||
} while (count);
|
} while (ret && count);
|
||||||
return cbuf - (const char *) buf;
|
return cbuf - (const char *) buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user