Hi,
Java 1.4.1:
I have a problem using the JNI interface to call some library methods
written in java from some C code. The C code uses SIGUSR1 for
asynchronous events. However JNI_CreateJVM unblocks SIGUSR1
even if I supply the "-XX:+UseAltSigs" option.
The C code relies on the fact that SIGUSR1 is normally blocked and
only handled after a sigwait call. However after the Java VM is
initialised SIGUSR1 is unblocked.
My question is - is it safe to reblock the SIGUSR1 signal after
initialising the java VM or should I look for another solution (i.e.
use another signal)?
TIA, Mark
Java 1.4.1:
I have a problem using the JNI interface to call some library methods
written in java from some C code. The C code uses SIGUSR1 for
asynchronous events. However JNI_CreateJVM unblocks SIGUSR1
even if I supply the "-XX:+UseAltSigs" option.
The C code relies on the fact that SIGUSR1 is normally blocked and
only handled after a sigwait call. However after the Java VM is
initialised SIGUSR1 is unblocked.
My question is - is it safe to reblock the SIGUSR1 signal after
initialising the java VM or should I look for another solution (i.e.
use another signal)?
TIA, Mark