Code

ipmi: use SIGIO instead of SIGUSR2 to avoid conflict with JVM
authorVincent Bernat <vincent@bernat.im>
Fri, 23 Jan 2015 17:55:04 +0000 (18:55 +0100)
committerMarc 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.

src/ipmi.c

index 95b3dbf5625fcd4c09aef04d2a880c5ca85d2ae8..262c439148843256afa3f7885e586751fceff5ca 100644 (file)
@@ -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.");