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.");
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];