nix-store --serve: Implement log size limit
This commit is contained in:
parent
9ffc4f4363
commit
1abda8e173
4 changed files with 8 additions and 4 deletions
|
|
@ -2854,7 +2854,8 @@ void DerivationGoal::handleChildOutput(int fd, const string & data)
|
|||
printMsg(lvlError,
|
||||
format("%1% killed after writing more than %2% bytes of log output")
|
||||
% getName() % settings.maxLogSize);
|
||||
timedOut(); // not really a timeout, but close enough
|
||||
killChild();
|
||||
done(BuildResult::LogLimitExceeded);
|
||||
return;
|
||||
}
|
||||
if (verbosity >= settings.buildVerbosity)
|
||||
|
|
|
|||
|
|
@ -112,7 +112,8 @@ struct BuildResult
|
|||
CachedFailure,
|
||||
TimedOut,
|
||||
MiscFailure,
|
||||
DependencyFailed
|
||||
DependencyFailed,
|
||||
LogLimitExceeded,
|
||||
} status = MiscFailure;
|
||||
std::string errorMsg;
|
||||
//time_t startTime = 0, stopTime = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue