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_sync.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ot_sync.c') diff --git a/ot_sync.c b/ot_sync.c index 4beb60d..c204c95 100644 --- a/ot_sync.c +++ b/ot_sync.c @@ -10,6 +10,9 @@ #include #include #include +#ifdef WANT_THREAD_NAME_NP +#include +#endif /* Libowfat */ #include "scan.h" @@ -151,6 +154,9 @@ static void * sync_worker( void * args) { static pthread_t thread_id; void sync_init( ) { pthread_create( &thread_id, NULL, sync_worker, NULL ); +#ifdef WANT_THREAD_NAME_NP + pthread_set_name_np( thread_id, "opentracker (batchsync)"); +#endif } void sync_deinit( ) { -- cgit v1.2.3