summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a4b9c9a)
raw | patch | inline | side by side (parent: a4b9c9a)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 16 Nov 2016 06:49:25 +0000 (07:49 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 16 Nov 2016 06:49:25 +0000 (07:49 +0100) |
src/gps.c | patch | blob | history | |
src/mqtt.c | patch | blob | history |
diff --git a/src/gps.c b/src/gps.c
index b5294228800e86efa784b1b34fdc255c631d0d62..81056e3c973a80f07188e9549e7132554e847862 100644 (file)
--- a/src/gps.c
+++ b/src/gps.c
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 c08fd29ed2842cde90572f6dac5cbed817e3ba83..32304f0cec888633796588274893ba069f77fd2f 100644 (file)
--- a/src/mqtt.c
+++ b/src/mqtt.c
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];