From: Vincent Bernat Date: Fri, 23 Jan 2015 17:55:04 +0000 (+0100) Subject: ipmi: use SIGIO instead of SIGUSR2 to avoid conflict with JVM X-Git-Tag: collectd-5.5.0~89^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6e54524e2554cda4e87ac0a74e462045e3e2667c;p=collectd.git 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. --- 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.");