From 87d9d6e3fe7122d4a2ff507d6561eebfa569f8e7 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 16:53:45 -0300 Subject: Tty9p and its pardes-v9fs helper removed (the user: a one-off), a terminal with the session kernel-mounted through Linux v9fs: the builtin and its SPC n 9, the spawn's mounted path and the pane's flag, the host's helper launch, src/linux/v9fs.zig and its build and install, test/v9fs.py, v9fs_driver_test.py and v9fs_terminal.py with their three steps, the docs (the build notes keep how to mount a session by hand); the builtin lists regenerated; core, fs-unit, pane, behaviour and process tests, the gui build and all 113 snap scripts pass; ~/.local/bin/pardes-v9fs, installed before, is left Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/host_io.zig | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/host_io.zig') 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. -- cgit v1.3