Skip to content

Commit

Permalink
Fix 'error: reading a line: Input/output error' in startBuilder()
Browse files Browse the repository at this point in the history
With -vvvv, the ProgressBar was polluting the stderr of the child,
messing up its \2 message to the parent.
  • Loading branch information
edolstra committed Sep 27, 2021
1 parent 8430a8f commit 9c766a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/libutil/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 2 additions & 2 deletions tests/ca/signatures.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ testOneCopy () {
rm -rf "$REMOTE_STORE_DIR"

attrPath="$1"
nix copy --to $REMOTE_STORE "$attrPath" --file ./content-addressed.nix \
--secret-key-files "$TEST_ROOT/sk1"
nix copy -vvvv --to $REMOTE_STORE "$attrPath" --file ./content-addressed.nix \
--secret-key-files "$TEST_ROOT/sk1" --show-trace

ensureCorrectlyCopied "$attrPath"

Expand Down

0 comments on commit 9c766a4

Please sign in to comment.