Set GC_DONT_GC=1.

To avoid `Collecting from unknown thread'.
This commit is contained in:
John Soo 2022-04-21 09:31:53 -07:00
parent 2871c7a3f4
commit b062ac705d
No known key found for this signature in database
GPG key ID: D8A148F8CE4DDBC2

View file

@ -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();