On Wed, 21 Sep 2022 21:37:59 GMT, Roger Riggs <rri...@openjdk.org> wrote:
>> Clear the signal mask of the child when launching with posix_spawn. >> >> SIGQUIT signals are handled on non-Java Threads by the VM. >> For Java threads the signal mask blocks SIGQUIT. >> The ProcessBuilder uses posix_spawn on all platforms to create new processes. >> Without a specific request, the child process inherits the signal masks from >> the parent. > > Roger Riggs has updated the pull request incrementally with one additional > commit since the last revision: > > Test both with and without -Xrs Not sure it makes any difference whether this happens in the initial spawn or in jspawnhelper. I agree it is nicer to not affect the calling thread/process at all. My concern is that unblocking all signals may have some unintended side-effect, versus just dealing with SIGQUIT i.e. take a minimalist approach. ------------- PR: https://git.openjdk.org/jdk/pull/10379