Use plugin_thread_create() rather than pthread_create() in all plugins.
[collectd.git] / src / ipmi.c
index 7eafea8..fada5bd 100644 (file)
@@ -669,7 +669,7 @@ static int c_ipmi_init (void)
 
   c_ipmi_active = 1;
 
-  status = pthread_create (&thread_id, /* attr = */ NULL, thread_main,
+  status = plugin_thread_create (&thread_id, /* attr = */ NULL, thread_main,
       /* user data = */ NULL);
   if (status != 0)
   {