Commit e9729b9
Eric Bower
·
2026-04-03 14:06:36 -0400 EDT
parent d48b642
docs: leader comment
1 files changed,
+2,
-0
+2,
-0
| ... | ... | @@ -336,6 +336,8 @@ const Daemon = struct { | |
| 336 | 336 | cfg: *Cfg, | |
| 337 | 337 | alloc: std.mem.Allocator, | |
| 338 | 338 | clients: std.ArrayList(*Client), | |
| 339 | + | // This control which client is the leader. The leader controls terminal state and | |
| 340 | + | // cols/rows of session. | |
| 339 | 341 | leader_client_fd: ?i32, | |
| 340 | 342 | session_name: []const u8, | |
| 341 | 343 | socket_path: []const u8, |