mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
build-remote: Ugly hackery to get build logs to work
The build hook mechanism expects build log output to go to file descriptor 4, so do that.
This commit is contained in:
parent
3a5f04f48c
commit
feefcb3a98
4 changed files with 11 additions and 3 deletions
|
@ -13,6 +13,7 @@ private:
|
|||
const std::string keyFile;
|
||||
const bool useMaster;
|
||||
const bool compress;
|
||||
const int logFD;
|
||||
|
||||
struct State
|
||||
{
|
||||
|
@ -27,11 +28,12 @@ private:
|
|||
|
||||
public:
|
||||
|
||||
SSHMaster(const std::string & host, const std::string & keyFile, bool useMaster, bool compress)
|
||||
SSHMaster(const std::string & host, const std::string & keyFile, bool useMaster, bool compress, int logFD = -1)
|
||||
: host(host)
|
||||
, keyFile(keyFile)
|
||||
, useMaster(useMaster)
|
||||
, compress(compress)
|
||||
, logFD(logFD)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue