aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-09-27 14:44:21 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-09-27 14:44:21 +0200
commit9c766a40cbbd3a350a9582d0fd8201e3361a63b2 (patch)
tree346b12f059d0223d15c2f81e0a0eb2ea5094e196 /src/libutil/util.cc
parent8430a8f0866e4463a891ccce62779ea9ac0f3b38 (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.cc2
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();