Skip to content

Commit

Permalink
8332921: Ctrl+C does not call shutdown hooks after JLine upgrade
Browse files Browse the repository at this point in the history
Reviewed-by: asotona, vromero
  • Loading branch information
lahodaj committed Jun 6, 2024
1 parent 3089412 commit b3f540d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ private synchronized JdkConsole initializeJLineDelegate() {
try {
Terminal terminal = TerminalBuilder.builder().encoding(charset)
.exec(false)
.nativeSignals(false)
.systemOutput(SystemOutput.SysOut)
.build();
newDelegate = new JdkConsoleImpl(terminal);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public int readBuffered(byte[] b) throws IOException {
terminal = TerminalBuilder.builder().inputStreamWrapper(in -> {
input.setInputStream(in);
return nonBlockingInput;
}).build();
}).nativeSignals(false).build();
useComplexDeprecationHighlight = !OSUtils.IS_WINDOWS;
}
this.allowIncompleteInputs = allowIncompleteInputs;
Expand Down

1 comment on commit b3f540d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.