minor valgrind fixes

pull/88/head
Oliver Giles 5 years ago
parent 31c64980f7
commit 5c7421c833

@ -645,8 +645,8 @@ bool Laminar::tryStartRun(std::shared_ptr<Run> run, int queueIndex) {
}); });
// Actually schedules the Run steps // Actually schedules the Run steps
kj::Promise<void> exec = handleRunStep(run.get()).then([this,r=run.get()]{ kj::Promise<void> exec = handleRunStep(run.get()).then([=]{
runFinished(r); runFinished(run.get());
}); });
if(run->timeout > 0) { if(run->timeout > 0) {
exec = exec.attach(srv->addTimeout(run->timeout, [r=run.get()](){ exec = exec.attach(srv->addTimeout(run->timeout, [r=run.get()](){

@ -83,7 +83,7 @@ public:
kj::Maybe<pid_t> current_pid; kj::Maybe<pid_t> current_pid;
int output_fd; int output_fd;
std::unordered_map<std::string, std::string> params; std::unordered_map<std::string, std::string> params;
int timeout; int timeout = 0;
time_t queuedAt; time_t queuedAt;
time_t startedAt; time_t startedAt;

Loading…
Cancel
Save