diff options
| author | Gabriel Schneider <[email protected]> | 2026-06-08 22:36:33 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-06-08 23:05:25 -0300 |
| commit | bfeefd0cbdbdd7e2b1712253ac81e3e8ba09283b (patch) | |
| tree | 7687391929b1cc90000c00d8e64d06c22387a10e /src/shock.zig | |
| parent | 34de4c7fa3a740eed14bd58b778728942bf0b005 (diff) | |
| download | codenomicon-bfeefd0cbdbdd7e2b1712253ac81e3e8ba09283b.tar.gz codenomicon-bfeefd0cbdbdd7e2b1712253ac81e3e8ba09283b.zip | |
Diffstat (limited to 'src/shock.zig')
| -rw-r--r-- | src/shock.zig | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/shock.zig b/src/shock.zig index 90e6edf..b2abba8 100644 --- a/src/shock.zig +++ b/src/shock.zig @@ -18,17 +18,6 @@ pub fn main(init: std.process.Init.Minimal) !void { defer threaded.deinit(); const io = threaded.io(); - // var evented: std.Io.Evented = undefined; - // try evented.init(alloc, .{ - // .argv0 = .init(init.args), - // .environ = init.environ, - // .backing_allocator_needs_mutex = false, - // }); - // defer evented.deinit(); - // const io = evented.io(); - - // const f = try std.Io.Dir.cwd().openFile(io, subject, .{ .mode = .read_only }); - // std.debug.print("file: {any}\n", .{f}); var child = try std.process.spawn(io, .{ .argv = &.{subject}, .stdout = .pipe, @@ -41,10 +30,8 @@ pub fn main(init: std.process.Init.Minimal) !void { std.debug.print("spawned child: {any}\n", .{child}); - // io.async(function: anytype, args: (unknown type)) var child_fut = io.async(std.process.Child.wait, .{ &child, io }); const child_out = try child_fut.await(io); - // const child_out = try child.wait(io); std.debug.print("stdout: {s}\n", .{buf}); { |
