From 9c766a40cbbd3a350a9582d0fd8201e3361a63b2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 27 Sep 2021 14:44:21 +0200 Subject: 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. --- src/libutil/util.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libutil') 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(); -- cgit v1.2.3