8332921: Ctrl+C does not call shutdown hooks after JLine upgrade

Reviewed-by: asotona, vromero
This commit is contained in:
Jan Lahoda 2024-06-06 04:43:36 +00:00
parent 30894126a4
commit b3f540d354
2 changed files with 2 additions and 1 deletions

View File

@ -164,6 +164,7 @@ public class JdkConsoleProviderImpl implements JdkConsoleProvider {
try {
Terminal terminal = TerminalBuilder.builder().encoding(charset)
.exec(false)
.nativeSignals(false)
.systemOutput(SystemOutput.SysOut)
.build();
newDelegate = new JdkConsoleImpl(terminal);

View File

@ -158,7 +158,7 @@ class ConsoleIOContext extends IOContext {
terminal = TerminalBuilder.builder().inputStreamWrapper(in -> {
input.setInputStream(in);
return nonBlockingInput;
}).build();
}).nativeSignals(false).build();
useComplexDeprecationHighlight = !OSUtils.IS_WINDOWS;
}
this.allowIncompleteInputs = allowIncompleteInputs;