aboutsummaryrefslogtreecommitdiff
path: root/src/nix-daemon
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-05-21 17:26:41 -0500
committerWill Dietz <w@wdtz.org>2018-05-21 17:30:38 -0500
commitb08923b4a06cf585b038e73cc277fccff8ce9b58 (patch)
tree71d65f60a2cdc742ac741e7be384ce57a39dc229 /src/nix-daemon
parent966407bcf1cf86de508b20fef43cffb81d8a87dc (diff)
serialise: fix buffer size used, hide method for internal use only
Fixes #2169.
Diffstat (limited to 'src/nix-daemon')
-rw-r--r--src/nix-daemon/nix-daemon.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index 35603af70..3dd8cec29 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -197,7 +197,8 @@ struct TunnelSource : BufferedSource
{
Source & from;
TunnelSource(Source & from) : from(from) { }
- size_t readUnbuffered(unsigned char * data, size_t len)
+protected:
+ size_t readUnbuffered(unsigned char * data, size_t len) override
{
to << STDERR_READ << len;
to.flush();