mqtt, gps: add name parameter to plugin_thread_create()
[collectd.git] / src / gps.c
index b529422..81056e3 100644 (file)
--- a/src/gps.c
+++ b/src/gps.c
@@ -300,7 +300,7 @@ static int cgps_init (void)
          CDTIME_T_TO_DOUBLE (cgps_config_data.timeout),
          CDTIME_T_TO_DOUBLE (cgps_config_data.pause_connect));
 
-  status = plugin_thread_create (&cgps_thread_id, NULL, cgps_thread, NULL);
+  status = plugin_thread_create (&cgps_thread_id, NULL, cgps_thread, NULL, "gps");
   if (status != 0)
   {
     ERROR ("gps plugin: pthread_create() failed.");