Fix build with latest master

This commit is contained in:
regnat
2021-04-08 14:12:26 +02:00
parent 225634349e
commit 26ffd4a93e
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ static void openConnection(Machine::ptr machine, Path tmpDir, int stderrFD, Chil
child.pid = startProcess([&]() {
restoreSignals();
restoreProcessContext();
if (dup2(to.readSide.get(), STDIN_FILENO) == -1)
throw SysError("cannot dup input pipe to stdin");