From b062ac705df9d5b5040ce35c8c01cda394cd8a2a Mon Sep 17 00:00:00 2001 From: John Soo Date: Thu, 21 Apr 2022 09:31:53 -0700 Subject: [PATCH] Set GC_DONT_GC=1. To avoid `Collecting from unknown thread'. --- src/nix-eval-jobs.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index 51fb27e..347e889 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -282,6 +282,9 @@ int main(int argc, char * * argv) $NIX_PATH. */ unsetenv("NIX_PATH"); + /* We are doing the garbage collection by killing forks */ + setenv("GC_DONT_GC", "1", 1); + return handleExceptions(argv[0], [&]() { initNix(); initGC();