Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix signal handler registration in the JVM
omrsig.cpp::omrsig_primary_sigaction/omrsig_primary_signal doesn't support registration with SIG_DFL/SIG_IGN/NULL as the signal handler. 1) SIG_IGN is passed as the signal handler for SIGPIPE. 2) NULL is passed as the new signal handler for SIGILL. In the above cases, omrsig_primary_sigaction/omrsig_primary_signal shouldn't be used for registering a signal handler. Now onwards, only <signal.h>::sigaction/signal will used in the above cases. SIGPIPE needs to be ignored for the Java Attach API to work properly. Fixes eclipse-openj9#2871 Signed-off-by: Babneet Singh <sbabneet@ca.ibm.com>
- Loading branch information