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.3.2~5^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=89b7a6dfb77e5529e5089bf6593ed9fd83202429;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 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.");