diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-02 19:58:26 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-02-02 19:58:26 +0100 |
| commit | 3f4375a14218796cbd7bfff1c8cfff0f7bb1f6df (patch) | |
| tree | 1521b91b8f99af588156058b5f9aa12bb1626ac7 /src/init | |
| parent | 8d062a90b1ffbe9e00334fa3e9e939406bd32141 (diff) | |
change .editorconfig
Diffstat (limited to 'src/init')
| -rw-r--r-- | src/init/main.zig | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/init/main.zig b/src/init/main.zig index 0af43bc..a9b95a8 100644 --- a/src/init/main.zig +++ b/src/init/main.zig @@ -2,20 +2,20 @@ const std = @import("std"); const os = std.os.linux; pub fn main() !void { - std.debug.print("\u{1b}[1;1H\u{1b}[J", .{}); - _ = std.os.linux.mount("none", "/dev/", "devtmpfs", 0, 0); + std.debug.print("\u{1b}[1;1H\u{1b}[J", .{}); + _ = std.os.linux.mount("none", "/dev/", "devtmpfs", 0, 0); - const pid = @as(i32, @intCast(os.fork())); + const pid = @as(i32, @intCast(os.fork())); - if (pid == 0) { - _ = os.execve("process", &[_:null]?[*:0]const u8 { "process" }, &[0:null]?[*:0]const u8{}); + if (pid == 0) { + _ = os.execve("process", &[_:null]?[*:0]const u8 { "process" }, &[0:null]?[*:0]const u8{}); - return error.ExecFailed; - } + return error.ExecFailed; + } - var status: u32 = undefined; - _ = os.waitpid(pid, &status, 0); + var status: u32 = undefined; + _ = os.waitpid(pid, &status, 0); - while (true) { std.time.sleep(100); } + while (true) { std.time.sleep(100); } } |