From 6e54524e2554cda4e87ac0a74e462045e3e2667c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 23 Jan 2015 18:55:04 +0100 Subject: [PATCH] ipmi: use SIGIO instead of SIGUSR2 to avoid conflict with JVM Java uses SIGUSR2 to suspend/resume threads. The OpenIPMI plugins also need a signal to resume its event loop when setting a timer. They can't both use the same signal. We ask OpenIPMI to use SIGIO instead. This should fix #114. --- src/ipmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipmi.c b/src/ipmi.c index 47ceacae..51d33dcb 100644 --- a/src/ipmi.c +++ b/src/ipmi.c @@ -557,7 +557,7 @@ static int thread_init (os_handler_t **ret_os_handler) ipmi_domain_id_t domain_id; int status; - os_handler = ipmi_posix_thread_setup_os_handler (SIGUSR2); + os_handler = ipmi_posix_thread_setup_os_handler (SIGIO); if (os_handler == NULL) { ERROR ("ipmi plugin: ipmi_posix_thread_setup_os_handler failed."); -- 2.11.0