diff --git a/cli/cli.zig b/cli/cli.zig index 8171e78..3e9908a 100644 --- a/cli/cli.zig +++ b/cli/cli.zig @@ -51,7 +51,7 @@ pub fn main() !void { run(allocator, options, writer) catch |err| { switch (err) { - error.JetzigCommandError => std.os.exit(1), + error.JetzigCommandError => std.process.exit(1), else => return err, } }; diff --git a/cli/commands/bundle.zig b/cli/commands/bundle.zig index 7435a7e..b452f55 100644 --- a/cli/commands/bundle.zig +++ b/cli/commands/bundle.zig @@ -134,6 +134,6 @@ pub fn run( } else { std.debug.print("Unable to locate compiled executable. Exiting.", .{}); util.printFailure(); - std.os.exit(1); + std.process.exit(1); } } diff --git a/cli/commands/server.zig b/cli/commands/server.zig index f38aca7..b8d4b42 100644 --- a/cli/commands/server.zig +++ b/cli/commands/server.zig @@ -72,7 +72,7 @@ pub fn run( const exe_path = try util.locateExecutable(allocator, cwd, .{}); if (exe_path == null) { std.debug.print("Unable to locate compiled executable. Exiting.\n", .{}); - std.os.exit(1); + std.process.exit(1); } const argv = &[_][]const u8{exe_path.?}; @@ -94,7 +94,7 @@ pub fn run( if (!options.reload) { const term = try process.wait(); - std.os.exit(term.Exited); + std.process.exit(term.Exited); } while (true) {