mirror of
https://github.com/ohwgiles/laminar.git
synced 2024-10-27 20:34:20 +00:00
minor valgrind fixes
This commit is contained in:
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…
Reference in New Issue
Block a user