Integrated: 8365790: Shutdown hook for application image does not work on Windows

Alexey Semenyuk asemenyuk at openjdk.org
Wed Sep 17 19:25:24 UTC 2025


On Fri, 12 Sep 2025 20:48:22 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.
> 
> The new test is crafted to work (skip) in the environment where Ctrl+C signal emitted from the PowerShell script doesn't go through to a child process.
> 
> Supplementary changes:
>  - Added convenience api to CfgFile;
>  - Fixed `TKit.waitForFileCreated()` function to work correctly when multiple files are monitored in the same directory and to call `close()` on the WatchService instance.

This pull request has now been integrated.

Changeset: f7ce3a1b
Author:    Alexey Semenyuk <asemenyuk at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f7ce3a1b5f38143f17b5015ca5b714ec0e708f54
Stats:     387 lines in 8 files changed: 346 ins; 4 del; 37 mod

8365790: Shutdown hook for application image does not work on Windows

Reviewed-by: almatvee

-------------

PR: https://git.openjdk.org/jdk/pull/27264


More information about the core-libs-dev mailing list