Test retry on EINTR in close.

This commit is contained in:
Victor Zverovich
2014-05-16 06:25:20 -07:00
parent 41895fdf42
commit 232e5c3a3b
2 changed files with 24 additions and 1 deletions
-1
View File
@@ -56,7 +56,6 @@ namespace {
#ifdef _WIN32
// On Windows the count argument to read and write is unsigned, so convert
// it from size_t preventing integer overflow.
// TODO: test
inline unsigned ConvertRWCount(std::size_t count) {
return count <= UINT_MAX ? static_cast<unsigned>(count) : UINT_MAX;
}