mbien commented on issue #7676:
URL: https://github.com/apache/netbeans/issues/7676#issuecomment-2303394021
in principle, this could be fixed via a small change within mvnd and would
also align with what the client already does on SIGINT (ctrl+c). (it sends a
cancel message to the connected daemon which cancels the build and makes itself
available again for other tasks)
I have a prototype which:
- adds a JVM shutdown hook which sends the cancel msg on irregular shutdown
(SIGTERM)
- this requires to build the native image with `--install-exit-handlers`,
since without it, GraalVM would not trigger shutdown hooks on irregular
shutdowns
The problem however is that the build is also setting
`-H:-ParseRuntimeOptions` for the purpose of delegating `-D` params instead of
parsing them as args. This seems to mess with the signal chaining and prevents
the shutdown hook from running again.
This may or may not be a graalvm bug - needs more investigation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists