From ec0affa97de870f3acd280afff728adccd48b2c8 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 7 Oct 2008 23:44:59 +0000 Subject: allow threads to be named. not posix compliant. --- ot_fullscrape.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ot_fullscrape.c') diff --git a/ot_fullscrape.c b/ot_fullscrape.c index abd8cee..cab619b 100644 --- a/ot_fullscrape.c +++ b/ot_fullscrape.c @@ -15,6 +15,9 @@ #ifdef WANT_COMPRESSION_GZIP #include #endif +#ifdef WANT_THREAD_NAME_NP +#include +#endif /* Libowfat */ #include "byte.h" @@ -73,6 +76,9 @@ static void * fullscrape_worker( void * args ) { static pthread_t thread_id; void fullscrape_init( ) { pthread_create( &thread_id, NULL, fullscrape_worker, NULL ); +#ifdef WANT_THREAD_NAME_NP + pthread_set_name_np( thread_id, "opentracker (fullscrape)"); +#endif } void fullscrape_deinit( ) { -- cgit v1.2.3