aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2023-03-17 09:25:49 +0100
committerJakub Konka <kubkon@jakubkonka.com>2023-03-18 21:53:36 +0100
commit37192bcdcb38be2266133f6d46dce5a842984c06 (patch)
treef529668b8c48d0c2b6d123bccfc0bf8556c218a1 /src/main.zig
parentf1e25cf43ec60075a4fc6f3eceb5a3af1f9f0712 (diff)
downloadzig-37192bcdcb38be2266133f6d46dce5a842984c06.tar.gz
zig-37192bcdcb38be2266133f6d46dce5a842984c06.zip
macos: HCS PoC working
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig33
1 files changed, 15 insertions, 18 deletions
diff --git a/src/main.zig b/src/main.zig
index 7d46f10a22..551bd55c42 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -3320,21 +3320,20 @@ fn buildOutputType(
try server.listen(.{ .in = ip4_addr });
- while (true) {
- const conn = try server.accept();
- defer conn.stream.close();
-
- try serve(
- comp,
- .{ .handle = conn.stream.handle },
- .{ .handle = conn.stream.handle },
- test_exec_args.items,
- self_exe_path,
- arg_mode,
- all_args,
- runtime_args_start,
- );
- }
+ const conn = try server.accept();
+ defer conn.stream.close();
+
+ try serve(
+ comp,
+ .{ .handle = conn.stream.handle },
+ .{ .handle = conn.stream.handle },
+ test_exec_args.items,
+ self_exe_path,
+ arg_mode,
+ all_args,
+ runtime_args_start,
+ );
+ return cleanExit();
},
}
@@ -3465,9 +3464,7 @@ fn serve(
const hdr = try server.receiveMessage();
switch (hdr.tag) {
- .exit => {
- return cleanExit();
- },
+ .exit => return,
.update => {
assert(main_progress_node.recently_updated_child == null);
tracy.frameMark();