exec-maven-plugin icon indicating copy to clipboard operation
exec-maven-plugin copied to clipboard

Graceful shutdown on JVM termination

Open astefanutti opened this issue 10 years ago • 2 comments

When the virtual machine is terminated in response to a user interrupt, such as typing ^C, the parent process should wait until the child process exit for a certain amount of time configurable, and properly flush and close the process steams.

One typical issue with the current absence of graceful shutdown is the child process logs emitted during the child JVM shutdown sequence that are not streamed back to the parent stream handler.

astefanutti avatar Nov 04 '15 13:11 astefanutti

An example to reproduce that issue can be found here: https://github.com/astefanutti/camel-cdi/blob/44cad4f6e8e40cff448608acae70eb08ebe40f1c/quickstarts/pom.xml#L31-L44

astefanutti avatar Nov 04 '15 18:11 astefanutti

We have the same issue. :(

lcardito avatar Mar 08 '16 16:03 lcardito