summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8fa66d7)
raw | patch | inline | side by side (parent: 8fa66d7)
author | Vincent Bernat <vincent@bernat.im> | |
Fri, 23 Jan 2015 17:55:04 +0000 (18:55 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 26 Jan 2015 13:05:12 +0000 (14:05 +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 95b3dbf5625fcd4c09aef04d2a880c5ca85d2ae8..262c439148843256afa3f7885e586751fceff5ca 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.");