forked from lix-project/nix-eval-jobs
Merge pull request 'fix crash in worker when opening the store' (#4) from open-store-crash into main
Reviewed-on: lix-project/nix-eval-jobs#4
This commit is contained in:
commit
02bcbe0c0e
|
@ -66,8 +66,11 @@ struct Proc {
|
|||
std::make_shared<AutoCloseFD>(std::move(toPipe.readSide))}]() {
|
||||
debug("created worker process %d", getpid());
|
||||
try {
|
||||
auto state = std::make_shared<EvalState>(
|
||||
myArgs.searchPath, openStore(*myArgs.evalStoreUrl));
|
||||
auto evalStore = myArgs.evalStoreUrl
|
||||
? openStore(*myArgs.evalStoreUrl)
|
||||
: openStore();
|
||||
auto state = std::make_shared<EvalState>(myArgs.searchPath,
|
||||
evalStore);
|
||||
Bindings &autoArgs = *myArgs.getAutoArgs(*state);
|
||||
proc(ref<EvalState>(state), autoArgs, *to, *from, myArgs);
|
||||
} catch (Error &e) {
|
||||
|
|
Loading…
Reference in a new issue