From 0695630eb581220b587f1b4d229498bbb099a0f9 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Wed, 17 Dec 2025 23:48:35 +0300 Subject: [PATCH] libutil: Fix FdSource::read on Windows We need to signal the EOF condition, otherwise the read never terminates. --- src/libutil/serialise.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/serialise.cc b/src/libutil/serialise.cc index 53731557a..6af23b2e8 100644 --- a/src/libutil/serialise.cc +++ b/src/libutil/serialise.cc @@ -163,11 +163,11 @@ size_t FdSource::readUnbuffered(char * data, size_t len) _good = false; throw SysError("reading from file"); } +#endif if (n == 0) { _good = false; throw EndOfFile(std::string(*endOfFileError)); } -#endif read += n; return n; }