diff options
author | erdgeist <> | 2008-10-07 23:53:29 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-07 23:53:29 +0000 |
commit | 0deb06d5442d4d65cf4251428d5977396cfbf023 (patch) | |
tree | a2543bb89a30942b824030971672fbe12603beca | |
parent | 0f271421c3d44e3067087ab6bccf5dbbe964a977 (diff) |
Reverting last commit. Debug effect not seen.
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | ot_clean.c | 6 | ||||
-rw-r--r-- | ot_fullscrape.c | 6 | ||||
-rw-r--r-- | ot_livesync.c | 6 | ||||
-rw-r--r-- | ot_sync.c | 6 |
5 files changed, 0 insertions, 25 deletions
@@ -29,7 +29,6 @@ BINDIR?=$(PREFIX)/bin | |||
29 | #FEATURES+=-DWANT_IP_FROM_QUERY_STRING | 29 | #FEATURES+=-DWANT_IP_FROM_QUERY_STRING |
30 | #FEATURES+=-DWANT_COMPRESSION_GZIP | 30 | #FEATURES+=-DWANT_COMPRESSION_GZIP |
31 | #FEATURES+=-DWANT_LOG_NETWORKS | 31 | #FEATURES+=-DWANT_LOG_NETWORKS |
32 | #FEATURES+=-DWANT_THREAD_NAME_NP | ||
33 | #FEATURES+=-D_DEBUG_HTTPERROR | 32 | #FEATURES+=-D_DEBUG_HTTPERROR |
34 | 33 | ||
35 | FEATURES+=-DWANT_FULLSCRAPE | 34 | FEATURES+=-DWANT_FULLSCRAPE |
@@ -8,9 +8,6 @@ | |||
8 | #include <string.h> | 8 | #include <string.h> |
9 | #include <pthread.h> | 9 | #include <pthread.h> |
10 | #include <sys/uio.h> | 10 | #include <sys/uio.h> |
11 | #ifdef WANT_THREAD_NAME_NP | ||
12 | #include <pthread_np.h> | ||
13 | #endif | ||
14 | 11 | ||
15 | /* Libowfat */ | 12 | /* Libowfat */ |
16 | #include "byte.h" | 13 | #include "byte.h" |
@@ -129,9 +126,6 @@ void clean_all_torrents( ) { | |||
129 | static pthread_t thread_id; | 126 | static pthread_t thread_id; |
130 | void clean_init( void ) { | 127 | void clean_init( void ) { |
131 | pthread_create( &thread_id, NULL, clean_worker, NULL ); | 128 | pthread_create( &thread_id, NULL, clean_worker, NULL ); |
132 | #ifdef WANT_THREAD_NAME_NP | ||
133 | pthread_set_name_np( thread_id, "opentracker (cleanup)"); | ||
134 | #endif | ||
135 | } | 129 | } |
136 | 130 | ||
137 | void clean_deinit( void ) { | 131 | void clean_deinit( void ) { |
diff --git a/ot_fullscrape.c b/ot_fullscrape.c index cab619b..abd8cee 100644 --- a/ot_fullscrape.c +++ b/ot_fullscrape.c | |||
@@ -15,9 +15,6 @@ | |||
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 | ||
21 | 18 | ||
22 | /* Libowfat */ | 19 | /* Libowfat */ |
23 | #include "byte.h" | 20 | #include "byte.h" |
@@ -76,9 +73,6 @@ static void * fullscrape_worker( void * args ) { | |||
76 | static pthread_t thread_id; | 73 | static pthread_t thread_id; |
77 | void fullscrape_init( ) { | 74 | void fullscrape_init( ) { |
78 | pthread_create( &thread_id, NULL, fullscrape_worker, NULL ); | 75 | 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 | ||
82 | } | 76 | } |
83 | 77 | ||
84 | void fullscrape_deinit( ) { | 78 | void fullscrape_deinit( ) { |
diff --git a/ot_livesync.c b/ot_livesync.c index 382f702..92c947c 100644 --- a/ot_livesync.c +++ b/ot_livesync.c | |||
@@ -8,9 +8,6 @@ | |||
8 | #include <sys/uio.h> | 8 | #include <sys/uio.h> |
9 | #include <string.h> | 9 | #include <string.h> |
10 | #include <pthread.h> | 10 | #include <pthread.h> |
11 | #ifdef WANT_THREAD_NAME_NP | ||
12 | #include <pthread_np.h> | ||
13 | #endif | ||
14 | 11 | ||
15 | /* Libowfat */ | 12 | /* Libowfat */ |
16 | #include "socket.h" | 13 | #include "socket.h" |
@@ -56,9 +53,6 @@ void livesync_init( ) { | |||
56 | livesync_lastpacket_time = g_now; | 53 | livesync_lastpacket_time = g_now; |
57 | 54 | ||
58 | pthread_create( &thread_id, NULL, livesync_worker, NULL ); | 55 | pthread_create( &thread_id, NULL, livesync_worker, NULL ); |
59 | #ifdef WANT_THREAD_NAME_NP | ||
60 | pthread_set_name_np( thread_id, "opentracker (livesync)"); | ||
61 | #endif | ||
62 | } | 56 | } |
63 | 57 | ||
64 | void livesync_deinit() { | 58 | void livesync_deinit() { |
@@ -10,9 +10,6 @@ | |||
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <string.h> | 11 | #include <string.h> |
12 | #include <pthread.h> | 12 | #include <pthread.h> |
13 | #ifdef WANT_THREAD_NAME_NP | ||
14 | #include <pthread_np.h> | ||
15 | #endif | ||
16 | 13 | ||
17 | /* Libowfat */ | 14 | /* Libowfat */ |
18 | #include "scan.h" | 15 | #include "scan.h" |
@@ -154,9 +151,6 @@ static void * sync_worker( void * args) { | |||
154 | static pthread_t thread_id; | 151 | static pthread_t thread_id; |
155 | void sync_init( ) { | 152 | void sync_init( ) { |
156 | pthread_create( &thread_id, NULL, sync_worker, NULL ); | 153 | pthread_create( &thread_id, NULL, sync_worker, NULL ); |
157 | #ifdef WANT_THREAD_NAME_NP | ||
158 | pthread_set_name_np( thread_id, "opentracker (batchsync)"); | ||
159 | #endif | ||
160 | } | 154 | } |
161 | 155 | ||
162 | void sync_deinit( ) { | 156 | void sync_deinit( ) { |