diff --git a/src/hydra-queue-runner/build-remote.cc b/src/hydra-queue-runner/build-remote.cc index f81a5a0a..b1629595 100644 --- a/src/hydra-queue-runner/build-remote.cc +++ b/src/hydra-queue-runner/build-remote.cc @@ -100,6 +100,11 @@ static void openConnection(::Machine::ptr machine, Path tmpDir, int stderrFD, SS child.in = to.writeSide.release(); child.out = from.readSide.release(); + + // XXX: determine the actual max value we can use from /proc. + int pipesize = 1024 * 1024; + fcntl(child.in.get(), F_SETPIPE_SZ, &pipesize); + fcntl(child.out.get(), F_SETPIPE_SZ, &pipesize); }