summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 09f96ba)
raw | patch | inline | side by side (parent: 09f96ba)
author | Vincent Bernat <vincent@bernat.im> | |
Fri, 23 Jan 2015 17:55:04 +0000 (18:55 +0100) | ||
committer | Vincent Bernat <vincent@bernat.im> | |
Fri, 23 Jan 2015 17:57:05 +0000 (18:57 +0100) |
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.
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 | patch | blob | history |
diff --git a/src/ipmi.c b/src/ipmi.c
index 47ceacaefeb96d7faa50a44eaa9cd3f8c7eaee45..51d33dcb79635733d395fec6338c3ec4a7fe0036 100644 (file)
--- a/src/ipmi.c
+++ b/src/ipmi.c
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.");