|
|
@ -15,6 +15,9 @@ |
|
|
|
#ifdef WANT_COMPRESSION_GZIP |
|
|
|
#ifdef WANT_COMPRESSION_GZIP |
|
|
|
#include <zlib.h> |
|
|
|
#include <zlib.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef WANT_THREAD_NAME_NP |
|
|
|
|
|
|
|
#include <pthread_np.h> |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
/* Libowfat */ |
|
|
|
/* Libowfat */ |
|
|
|
#include "byte.h" |
|
|
|
#include "byte.h" |
|
|
@ -73,6 +76,9 @@ static void * fullscrape_worker( void * args ) { |
|
|
|
static pthread_t thread_id; |
|
|
|
static pthread_t thread_id; |
|
|
|
void fullscrape_init( ) { |
|
|
|
void fullscrape_init( ) { |
|
|
|
pthread_create( &thread_id, NULL, fullscrape_worker, NULL ); |
|
|
|
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( ) { |
|
|
|
void fullscrape_deinit( ) { |
|
|
|