Use of SIGUSR1 within the JVM/Solaris 8

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • nowhere@home.com

    Use of SIGUSR1 within the JVM/Solaris 8

    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

Working...