commit 6cab6ee38d5f787a4791a54d84122c407a0ab0b1
parent 039ee8db7ace84780f9b01b12ad4ce1f38daa04f
Author: Ember Sawady <ecs@d2evs.net>
Date: Wed, 11 Oct 2023 05:19:54 +0000
run_task: unlock after cleanup
doesn't actually affect correctness, but looks better
Signed-off-by: Ember Sawady <ecs@d2evs.net>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/hare/build/queue.ha b/cmd/hare/build/queue.ha
@@ -142,12 +142,12 @@ fn run_task(ctx: *context, jobs: *[]job, t: *task) (bool | error) = {
let outdated = module::outdated(out, deps, mod.srcs.mtime);
let exec = t.kind != stage::SSA || len(mod.srcs.ha) != 0;
if (!exec || !outdated) {
- io::close(lock)?;
if (outdated) {
cleanup_task(ctx, t)?;
} else if (t.kind == stage::SSA) {
get_td(ctx, t.idx)?;
};
+ io::close(lock)?;
free_task(t);
ctx.total -= 1;
return true;