Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8349148 | 21.0.8-oracle | Weibing Xiao | P3 | Resolved | Fixed | master |
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
-
- 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
-
- Open
-
-
JDK-8327476 Upgrade JLine to 3.26.1
-
- Resolved
-
(1 links to)