From: Marc Fournier Date: Wed, 16 Nov 2016 06:49:25 +0000 (+0100) Subject: mqtt, gps: add name parameter to plugin_thread_create() X-Git-Tag: collectd-5.7.0~32^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6d8031d73b7c1d874d7afa4cad2f248c4073764d;p=collectd.git mqtt, gps: add name parameter to plugin_thread_create() --- diff --git a/src/gps.c b/src/gps.c index b5294228..81056e3c 100644 --- 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."); diff --git a/src/mqtt.c b/src/mqtt.c index c08fd29e..32304f0c 100644 --- a/src/mqtt.c +++ b/src/mqtt.c @@ -776,7 +776,8 @@ static int mqtt_init (void) status = plugin_thread_create (&subscribers[i]->thread, /* attrs = */ NULL, /* func = */ subscribers_thread, - /* args = */ subscribers[i]); + /* args = */ subscribers[i], + /* name = */ "mqtt"); if (status != 0) { char errbuf[1024];