Commit 2586de1
authored
Fix duplicate output on console resize event (#806)
* Fix the SIGWINCH interrupt makes the write operation think its failed, and causes it to try again.
xlink directvt/vtm#819 (comment)
> When a window resize event is received (terminal generates WINDOW_BUFFER_SIZE_EVENT event when switching between alternate/normal buffer mode), the errno becomes EINTR which causes the write operation think its failed.
potentially fixes PowerShell/Win32-OpenSSH#2275
* #2275: Add comments to the fix the SIGWINCH interrupt makes the write operation think its failed1 parent 803cf83 commit 2586de1
2 files changed
+3
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | 228 | | |
240 | 229 | | |
241 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
232 | | - | |
233 | | - | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| |||
0 commit comments