JDK 21 | JDK 23 |
---|---|
21.0.8-oracleFixed | 23 b26Fixed |
Causes :
|
|
Duplicate :
|
|
Relates :
|
JDK-8327476 broke handling of Ctrl+C. New version of JLine modifies SIGINT handler and therefore breaks normal processing of Ctrl+C. 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.
|