I want a program running on Solaris to handle the equivalent of the SIGINFO signal available on BSD systems. What is this magic equivalent? SIGPROF has the same integer constant, but from what I see online it's used for profiling user vs. kernel time spent in the Solaris threading system, and I'd rather not mess with that. Thank for any ideas.4 responses total.
Well, there's always SIGUSR1 and SIGUSR2 if you have a need to define signals that have a special meaning to your program.
Unfortunately, the problem is that this is for a native program with a JVM embedded in it and java depends on SIGUSR1 and SIGUSR2, so I can't mess with those without breaking everything.
That *is* unfortunate. And, arguably, bad design on the part of the Java designers.
Well, it's possible that SIGUSR2 is unused by the JVM. I can confirm for sure SIGUSR1 *is* used by the JVM. I can double-check, but I'd still prefer to do something SIGINFOesque. Thanks.
You have several choices: