1
0
Fork 0
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:
Eelco Dolstra 2017-05-02 12:01:46 +02:00
parent 3a5f04f48c
commit feefcb3a98
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 11 additions and 3 deletions

View file

@ -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)
{
}