Skip to content
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

vendor: update github.com/moby/term to fix interrupt handling #3849

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Nov 5, 2022

On termios platforms, interrupt signals are not generated in raw mode terminals as the ISIG setting is not enabled. Remove interrupt handler as it does nothing for raw mode and prevents other uses of INT signal with this library.

This code seems to go back all the way to moby/moby#214 where signal handling was improved for monolithic docker repository. Raw mode -ISIG got reintroduced in moby/moby@3f63b878076, but the INT handler was left behind.

full diff: moby/term@abb1982...c43b287

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@codecov-commenter
Copy link

Codecov Report

Merging #3849 (adccf85) into master (8a19043) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3849   +/-   ##
=======================================
  Coverage   59.17%   59.17%           
=======================================
  Files         288      288           
  Lines       24647    24647           
=======================================
  Hits        14586    14586           
  Misses       9176     9176           
  Partials      885      885           

On termios platforms, interrupt signals are not generated in raw mode terminals
as the ISIG setting is not enabled. Remove interrupt handler as it does nothing
for raw mode and prevents other uses of INT signal with this library.

This code seems to go back all the way to moby/moby#214 where signal handling was
improved for monolithic docker repository. Raw mode -ISIG got reintroduced in
moby/moby@3f63b878076, but the INT handler was left
behind.

full diff: moby/term@abb1982...c43b287

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah changed the title vendor: update github.com/moby/sys to fix interrupt handling vendor: update github.com/moby/term to fix interrupt handling Nov 28, 2022
@thaJeztah thaJeztah marked this pull request as ready for review November 28, 2022 09:29
@thaJeztah thaJeztah merged commit ba501a4 into docker:master Nov 28, 2022
@thaJeztah thaJeztah deleted the update_term branch November 28, 2022 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interrupt signal is not proxied and "docker run" terminates
3 participants