-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 23
-
Component/s: tools
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8349148 | 21.0.8-oracle | Weibing Xiao | P3 | Resolved | Fixed | b01 |
| JDK-8357116 | 21.0.8 | Goetz Lindenmaier | P3 | Resolved | Fixed | b04 |
To provoke the issue, it's enough to call System.console().
I attached SigIntTest.java that demonstrates the problem.
Before commit 0a4eeeaa, the program printed "Shutdown hook called".
Now, it immediately terminates upon pressing Ctrl+C or sending kill -2 to the process.
- backported by
-
JDK-8349148 Ctrl+C does not call shutdown hooks after JLine upgrade
-
- Resolved
-
-
JDK-8357116 Ctrl+C does not call shutdown hooks after JLine upgrade
-
- Resolved
-
- caused by
-
JDK-8327476 Upgrade JLine to 3.26.1
-
- Resolved
-
- duplicates
-
JDK-8333794 New Console implementation not quitting JVM on SIGINT in containers
-
- Closed
-
- relates to
-
JDK-8346805 JLine update to System.console interferes with existing Java SignalHandler
-
- Resolved
-
- links to
-
Commit
openjdk/jdk/b3f540d3
-
Commit(master)
openjdk/jdk21u-dev/e3a7b104
-
Review
openjdk/jdk/19559
-
Review(master)
openjdk/jdk21u-dev/1779