diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-09-27 14:44:21 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-09-27 14:44:21 +0200 |
commit | 9c766a40cbbd3a350a9582d0fd8201e3361a63b2 (patch) | |
tree | 346b12f059d0223d15c2f81e0a0eb2ea5094e196 /src/libutil/util.cc | |
parent | 8430a8f0866e4463a891ccce62779ea9ac0f3b38 (diff) |
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.
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 6c7f93d50..bc841f425 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -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(); |