From 89b7a6dfb77e5529e5089bf6593ed9fd83202429 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 95b3dbf5..262c4391 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.30.2