libstore: run childStarted as late as possible
otherwise we *technically* give away the output fds before we've read them. Change-Id: I6ad0d6a1bb553ecfcdd7708f50d34142a425374d
This commit is contained in:
parent
fb8eb539fc
commit
e513cd2beb
1 changed files with 2 additions and 1 deletions
|
@ -726,7 +726,6 @@ void LocalDerivationGoal::startBuilder()
|
|||
|
||||
/* parent */
|
||||
pid.setSeparatePG(true);
|
||||
worker.childStarted(shared_from_this(), {builderOutPTY.get()}, true);
|
||||
|
||||
/* Check if setting up the build environment failed. */
|
||||
std::vector<std::string> msgs;
|
||||
|
@ -753,6 +752,8 @@ void LocalDerivationGoal::startBuilder()
|
|||
debug("sandbox setup: " + msg);
|
||||
msgs.push_back(std::move(msg));
|
||||
}
|
||||
|
||||
worker.childStarted(shared_from_this(), {builderOutPTY.get()}, true);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue