RFR: 8365790: Shutdown hook for application image does not work on Windows [v2]
Alexey Semenyuk
asemenyuk at openjdk.org
Sat Sep 13 03:24:13 UTC 2025
On Fri, 12 Sep 2025 21:02:45 GMT, Alexey Semenyuk <asemenyuk at openjdk.org> wrote:
>> Disable the default handling of Ctrl+C in the parent app launcher process to let the child app launcher running JVM handle it. Add corresponding test case.
>
> Alexey Semenyuk has updated the pull request incrementally with two additional commits since the last revision:
>
> - Hide powershell console
> - Add extra assert
Thank you for the review. The child process will automatically terminate when the parent terminates and vice versa.
The fix disables Ctrl+C event handling in the parent process to let the child process handle it. When a Ctrl+C event occurs, the child process running the JVM terminates, automatically terminating the parent process.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27264#issuecomment-3287432485
More information about the core-libs-dev
mailing list