Skip to content

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

Merged
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:update_term
Nov 28, 2022
Merged

vendor: update github.com/moby/term to fix interrupt handling#3849
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:update_term

Conversation

@thaJeztah

@thaJeztahthaJeztah commented Nov 5, 2022

Copy link
Copy Markdown
Member

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
Copy Markdown

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 <github@gone.nl>
@thaJeztahthaJeztah changed the title vendor: update github.com/moby/sys to fix interrupt handlingvendor: update github.com/moby/term to fix interrupt handlingNov 28, 2022
@thaJeztah
thaJeztah marked this pull request as ready for review November 28, 2022 09:29
@thaJeztah
thaJeztah merged commit ba501a4 into docker:masterNov 28, 2022
@thaJeztah
thaJeztah deleted the update_term branch November 28, 2022 10:37
Sign up for freeto 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

@thaJeztah@codecov-commenter@silvin-lubecki