summaryrefslogtreecommitdiff
path: root/src/shock.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/shock.zig')
-rw-r--r--src/shock.zig13
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});
{