Merge remote-tracking branch 'upstream/master' into split-buildRemote

This commit is contained in:
John Ericson
2023-12-04 09:12:58 -05:00
13 changed files with 52 additions and 31 deletions

View File

@@ -305,19 +305,25 @@ struct Machine
struct Connection {
nix::FdSink to;
nix::FdSource from;
unsigned int remoteVersion;
nix::ServeProto::Version remoteVersion;
// Backpointer to the machine
ptr machine;
operator nix::ServeProto::ReadConn ()
{
return { .from = from };
return {
.from = from,
.version = remoteVersion,
};
}
operator nix::ServeProto::WriteConn ()
{
return { .to = to };
return {
.to = to,
.version = remoteVersion,
};
}
};
};