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.
- duplicates
-
JDK-8333794 New Console implementation not quitting JVM on SIGINT in containers
- Closed
- relates to
-
JDK-8327476 Upgrade JLine to 3.26.1
- Resolved