-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
win, tty: fix problem of receiving unexpected SIGWINCH #2478
Conversation
Fix an issue where WINDOWS_BUFFER_SIZE_EVENT occurs and unexpected SIGWINCH is received before calling uv__tty_console_resize_message_loop_thread.
d169b7c
to
de6613e
Compare
@bzoz You're probably the most qualified to review this. |
Since this was caught with a test, any chance one can be written so we can catch it if it comes back in the future? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
To write a test that will catch this problem reliably, we need to call 1beb739 tried to add |
That assert would trip if |
@saghul I'm not sure, but if the |
Gotcha. LGTM. |
Fix an issue where WINDOWS_BUFFER_SIZE_EVENT occurs and unexpected SIGWINCH is received before calling uv__tty_console_resize_message_loop_thread. Refs: neovim/neovim#10978 (comment) PR-URL: #2478 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net>
Landed in 5013042, thank you! |
Fix an issue where WINDOWS_BUFFER_SIZE_EVENT occurs and unexpected SIGWINCH is received before calling uv__tty_console_resize_message_loop_thread. Refs: neovim/neovim#10978 (comment) PR-URL: libuv#2478 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net> (cherry picked from commit 5013042)
Fix an issue where WINDOWS_BUFFER_SIZE_EVENT occurs and unexpected SIGWINCH is received before calling uv__tty_console_resize_message_loop_thread. Refs: neovim/neovim#10978 (comment) PR-URL: libuv#2478 Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com> Reviewed-By: Saúl Ibarra Corretgé <s@saghul.net> (cherry picked from commit 5013042)
Fix an issue where
WINDOWS_BUFFER_SIZE_EVENT
occurs and unexpectedSIGWINCH
is received before callinguv__tty_console_resize_message_loop_thread()
.We encountered this problem in neovim functional tests.
Ref. neovim/neovim#10978 (comment)