need arg0 to be exe name
All checks were successful
AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m36s

This commit is contained in:
Emil Lerch 2023-10-25 17:27:04 -07:00
parent edeed81e06
commit 8227857563
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -38,6 +38,7 @@ fn runStandaloneServerParent(allocator: ?std.mem.Allocator, event_handler: inter
// We do this first so it shows more prominently when looking at processes // We do this first so it shows more prominently when looking at processes
// Also it will be slightly faster for whatever that is worth // Also it will be slightly faster for whatever that is worth
const child_arg = "--child_of_standalone_server"; const child_arg = "--child_of_standalone_server";
if (argi.next()) |a| try al.append(a);
try al.append(child_arg); try al.append(child_arg);
while (argi.next()) |a| { while (argi.next()) |a| {
if (std.mem.eql(u8, child_arg, a)) { if (std.mem.eql(u8, child_arg, a)) {