summaryrefslogtreecommitdiff
path: root/src/host_io.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/host_io.zig')
-rw-r--r--src/host_io.zig16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/host_io.zig b/src/host_io.zig
index b1ed8b4b..3b91ea7e 100644
--- a/src/host_io.zig
+++ b/src/host_io.zig
@@ -2027,13 +2027,6 @@ pub fn forkShell(
command_buf[line.len] = 0;
spawn.argv = Shell.commandArgv(spawn.path, command_buf[0..line.len :0].ptr);
}
- var helper_buf: [4096]u8 = undefined;
- const mounted = one_line == null and if (core) |c| if (c.panes[pane]) |pn| pn.v9fs_on_spawn else false else false;
- const helper: ?[:0]u8 = if (mounted) blk: {
- if (comptime builtin.os.tag != .linux) return error.LinuxRequired;
- if (fs == null) return error.SessionSocketRequired;
- break :blk try @import("linux/v9fs.zig").helperPath(&helper_buf);
- } else null;
// The last argument is whether this session takes its children's Looks —
// every session does but a `--nested` one, and a fork with no core at all
// (the tests below) is nobody's parent.
@@ -2045,15 +2038,6 @@ pub fn forkShell(
// acme's `$winid`: the pane a command was run from, so a script it runs
// can address that pane; unset for a shell and a header tag's command.
exportWinid(if (core) |c| (if (c.panes[pane]) |pn| (if (pn.command != null) pn.command_from else 0) else 0) else 0);
- if (helper) |path| {
- const c = core.?;
- const pn = c.panes[pane].?;
- const socket = ChildEnv.exported("PARDES_9P") orelse return error.SessionSocketRequired;
- var command: std.Io.Writer.Allocating = .init(c.gpa);
- defer command.deinit();
- try @import("linux/v9fs.zig").writeLaunchCommand(&command.writer, path, socket, &spawn.argv);
- if (!try pardes.panes.terminal.queuePendingCommand(pn, command.written())) return error.ShellAlreadyStarted;
- }
// Built here and not after the fork: between fork and exec the child may
// not call setenv, whose malloc can deadlock against a pty reader thread
// that held the heap when the fork took its snapshot.