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

@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1615194819,
"narHash": "sha256-LfPUsgeFRBzRgTp+828E7UhiVItSYH+CK6IJcjmlcZ4=",
"lastModified": 1617795613,
"narHash": "sha256-dDDZcE3feC8we6azs99pWSz/uqYNPG3DJSNnjgJ6JsQ=",
"owner": "NixOS",
"repo": "nix",
"rev": "1c0e3e453d41b869e4ac7e25dc1c00c349a7c411",
"rev": "906adadacd2d1c98346a2f42c0b42a32d2806d94",
"type": "github"
},
"original": {

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");