I'm using a Java wrapper for a native shared library on Unix (JRI). The native library (a C based REPL implementation for R) handles SIGINT internally. When using the Java wrapper, the Java application quits when I send a SIGINT to the process using:
kill -SIGINT pid
I'd prefer for the SIGINT to be entirely handled by the native library internally.
Is there an easy way to make Java completely ignore a SIGINT but still have the native library receive it?
Addition:
Preferably this would work on Unix and OSX.