@cryptotaxi247 / netdata-1 / commits / f82f9c407

coverity suggestions

Costa Tsaousis (ktsaou) committed Sep 23, 2017 at 21:45 UTC f82f9c407a8b07d5350c4c3ff0a3fc5d87c7777f
1 file changed +2 -1
src/rrdpush.c
+2 -1
@@ -284,7 +284,8 @@ static void rrdpush_sender_thread_cleanup_callback(void *ptr) {
284
285 if(!host->rrdpush_sender_join) {
286 info("STREAM %s [send]: sending thread detaches itself.", host->hostname);
287 - pthread_detach(pthread_self());
287 + if(pthread_detach(pthread_self()))
288 + error("STREAM %s [send]: pthread_detach() failed.", host->hostname);
289 }
290
291 host->rrdpush_sender_spawn = 0;