Re: Signal handling in Java

2017-06-23 Thread Stephan Bergmann
On 06/22/2017 09:11 PM, Michael Stahl wrote: The signal-chaining facility also allows an application to link and load a shared library libjsig.so before libc/libthread/libpthread. This library ensures that calls such as signal(), sigset(), andsigaction() are intercepted so that they do not actual

Re: Signal handling in Java

2017-06-22 Thread Michael Stahl
On 22.06.2017 19:53, Noel Grandin wrote: > if we care about playing nicely with pre-existing signal handles > installed by the JVM, then surely the right answer is that we too should > implement signal-chaining. > i.e. when we install our signal handlers, we should store the address of > the previo

Re: Signal handling in Java

2017-06-22 Thread Noel Grandin
if we care about playing nicely with pre-existing signal handles installed by the JVM, then surely the right answer is that we too should implement signal-chaining. i.e. when we install our signal handlers, we should store the address of the previously installed handler (if any) and call that insid

Signal handling in Java

2017-06-22 Thread Chris Sherlock
As part of writing my book on LibreOffice internals, I’m trying to understand why we special case signalling for the JVM. We seem to be concerned about wiping out the JVM signal handlers, but any JVM used after v1.4 has the -Xrs switch that allows for signal chaining (see http://docs.oracle.co