diff options
Diffstat (limited to 'src/libstore/ssh.cc')
-rw-r--r-- | src/libstore/ssh.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/ssh.cc b/src/libstore/ssh.cc index ea9cba578..7aac026c9 100644 --- a/src/libstore/ssh.cc +++ b/src/libstore/ssh.cc @@ -100,8 +100,8 @@ std::unique_ptr<SSHMaster::Connection> SSHMaster::startCommand(const std::string }, options); - in.readSide = -1; - out.writeSide = -1; + in.readSide.reset(); + out.writeSide.reset(); // Wait for the SSH connection to be established, // So that we don't overwrite the password prompt with our progress bar. @@ -162,7 +162,7 @@ Path SSHMaster::startMaster() throw SysError("unable to execute '%s'", args.front()); }, options); - out.writeSide = -1; + out.writeSide.reset(); std::string reply; try { |