RFR: 8279124: VirtualMachineImpl should check signal handler has installed before sending SIGQUIT [v2]
Thomas Stuefe
stuefe at openjdk.java.net
Wed Jan 19 08:39:29 UTC 2022
On Wed, 19 Jan 2022 07:59:28 GMT, Xin Liu <xliu at openjdk.org> wrote:
> if we install JVM_HANDLE_XXX_SIGNAL conditionally, it will leave java processes with -Xrs unprotected.
That's the idea. ReduceSignalUsage (Xrs) means that the hotspot should leave this signal and some others alone:
1. On Solaris and Linux, the signal masks for SIGINT, SIGTERM, SIGHUP,
and SIGQUIT are not changed by the JVM, and signal handlers for
these signals are not installed.
because, presumably, the user already installed a handler for this signal and does not want the JVM to change it. Matters if the JVM is embedded into a foreign launcher which does its own signal handling.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7003
More information about the serviceability-dev
mailing list