1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

Fix 'error: reading a line: Input/output error' in startBuilder()

With -vvvv, the ProgressBar was polluting the stderr of the child,
messing up its \2 message to the parent.
This commit is contained in:
Eelco Dolstra 2021-09-27 14:44:21 +02:00
parent 8430a8f086
commit 9c766a40cb
2 changed files with 4 additions and 2 deletions

View file

@ -1716,6 +1716,8 @@ string showBytes(uint64_t bytes)
// FIXME: move to libstore/build
void commonChildInit(Pipe & logPipe)
{
logger = makeSimpleLogger();
const static string pathNullDevice = "/dev/null";
restoreProcessContext();