~autumnull/haredo-devel

Clean up job slots on top-level exit v1 APPLIED

Ember Sawady: 1
 Clean up job slots on top-level exit

 1 files changed, 5 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~autumnull/haredo-devel/patches/38767/mbox | git am -3
Learn more about email & git

[PATCH] Clean up job slots on top-level exit Export this patch

---
cause test.do hack or something. mostly just feels like the right thing
to do
 src/main.ha | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/main.ha b/src/main.ha
index 851acf6..9893447 100644
--- a/src/main.ha
+++ b/src/main.ha
@@ -142,6 +142,11 @@ export fn main() void = {
			io::write(ctx.wr, [0])!;
		};
	};
	defer if (ctx.parent is void) {
		for (let i = 0z; i < ctx.jobs - 1; i += 1) {
			io::read(ctx.rd, [0])!;
		};
	};

	// first start sub-builds...
	for (let i = 0z; i < len(cmd.args); i += 1) {
-- 
2.39.1
Thanks!

~Autumn