Commit ed8bb49
committed
fix(monitor): resize PTY to host terminal size on startup
OCI config may omit consoleSize. The child process cannot query the
host terminal after setsid/pivot_root, so the parent must propagate
the host terminal dimensions to the PTY master immediately when I/O
forwarding is enabled — same pattern as runc's tty.resize().
Signed-off-by: Yuming He <ComixHe1895@outlook.com>1 parent 579d4a0 commit ed8bb49
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
158 | 165 | | |
159 | 166 | | |
160 | 167 | | |
| |||
0 commit comments