aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
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();