diff options
Diffstat (limited to 'ot_fullscrape.c')
| -rw-r--r-- | ot_fullscrape.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 @@ | |||
| 15 | #ifdef WANT_COMPRESSION_GZIP | 15 | #ifdef WANT_COMPRESSION_GZIP |
| 16 | #include <zlib.h> | 16 | #include <zlib.h> |
| 17 | #endif | 17 | #endif |
| 18 | #ifdef WANT_THREAD_NAME_NP | ||
| 19 | #include <pthread_np.h> | ||
| 20 | #endif | ||
| 18 | 21 | ||
| 19 | /* Libowfat */ | 22 | /* Libowfat */ |
| 20 | #include "byte.h" | 23 | #include "byte.h" |
| @@ -73,6 +76,9 @@ static void * fullscrape_worker( void * args ) { | |||
| 73 | static pthread_t thread_id; | 76 | static pthread_t thread_id; |
| 74 | void fullscrape_init( ) { | 77 | void fullscrape_init( ) { |
| 75 | pthread_create( &thread_id, NULL, fullscrape_worker, NULL ); | 78 | pthread_create( &thread_id, NULL, fullscrape_worker, NULL ); |
| 79 | #ifdef WANT_THREAD_NAME_NP | ||
| 80 | pthread_set_name_np( thread_id, "opentracker (fullscrape)"); | ||
| 81 | #endif | ||
| 76 | } | 82 | } |
| 77 | 83 | ||
| 78 | void fullscrape_deinit( ) { | 84 | void fullscrape_deinit( ) { |
