repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
e9729b9
parent
d48b642
author
Eric Bower
date
2026-04-03 14:06:36 -0400 EDT
docs: leader comment
1 files changed,  +2, -0
M src/main.zig
+2, -0
1@@ -336,6 +336,8 @@ const Daemon = struct {
2     cfg: *Cfg,
3     alloc: std.mem.Allocator,
4     clients: std.ArrayList(*Client),
5+    // This control which client is the leader.  The leader controls terminal state and
6+    // cols/rows of session.
7     leader_client_fd: ?i32,
8     session_name: []const u8,
9     socket_path: []const u8,