- commit
- f367693
- parent
- d34f8d6
- author
- Eric Bower
- date
- 2025-12-18 16:21:19 -0500 EST
revert: don't force pty resize This seems to be causing issues with multiple clients connected, instead we will require clients to force resize themselves for now
1 files changed,
+0,
-5
+0,
-5
1@@ -797,11 +797,6 @@ fn daemonLoop(daemon: *Daemon, server_sock_fd: i32, pty_fd: i32) !void {
2 _ = c.ioctl(pty_fd, c.TIOCSWINSZ, &ws);
3 try term.resize(daemon.alloc, resize.cols, resize.rows);
4
5- // Force SIGWINCH to PTY foreground process group on re-attach
6- var pgrp: posix.pid_t = 0;
7- if (c.ioctl(pty_fd, c.TIOCGPGRP, &pgrp) == 0 and pgrp > 0) {
8- posix.kill(-pgrp, posix.SIG.WINCH) catch {};
9- }
10 std.log.debug("init resize rows={d} cols={d}", .{ resize.rows, resize.cols });
11
12 // Only send terminal state if there's been PTY output (skip on first attach)