Remove extra TIOCSWINSZ ioctl on startup

The openpty call already performs it, thus no need to call it one more
with the exact same size since it confuses some applications.
This commit is contained in:
Kirill Chibisov authored and GitHub committed 2024-02-08 15:32:55 +04:00
1 parent 63bcc1ea88
commit 117719b321
1 file changed
+1 -3
+1 -3
View File
@@ -280,9 +280,7 @@ pub fn new(config: &Options, window_size: WindowSize, window_id: u64) -> Result<
set_nonblocking(master_fd);
}
let mut pty = Pty { child, file: File::from(master), signals };
pty.on_resize(window_size);
Ok(pty)
Ok(Pty { child, file: File::from(master), signals })
},
Err(err) => Err(Error::new(
err.kind(),