summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2008-10-07 23:53:29 +0000
committererdgeist <>2008-10-07 23:53:29 +0000
commit0deb06d5442d4d65cf4251428d5977396cfbf023 (patch)
treea2543bb89a30942b824030971672fbe12603beca
parent0f271421c3d44e3067087ab6bccf5dbbe964a977 (diff)
Reverting last commit. Debug effect not seen.
-rw-r--r--Makefile1
-rw-r--r--ot_clean.c6
-rw-r--r--ot_fullscrape.c6
-rw-r--r--ot_livesync.c6
-rw-r--r--ot_sync.c6
5 files changed, 0 insertions, 25 deletions
diff --git a/Makefile b/Makefile
index 4413a20..013ac92 100644
--- a/Makefile
+++ b/Makefile
@@ -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
35FEATURES+=-DWANT_FULLSCRAPE 34FEATURES+=-DWANT_FULLSCRAPE
diff --git a/ot_clean.c b/ot_clean.c
index d991d54..f8bb637 100644
--- a/ot_clean.c
+++ b/ot_clean.c
@@ -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( ) {
129static pthread_t thread_id; 126static pthread_t thread_id;
130void clean_init( void ) { 127void 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
137void clean_deinit( void ) { 131void 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 ) {
76static pthread_t thread_id; 73static pthread_t thread_id;
77void fullscrape_init( ) { 74void 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
84void fullscrape_deinit( ) { 78void 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
64void livesync_deinit() { 58void livesync_deinit() {
diff --git a/ot_sync.c b/ot_sync.c
index c204c95..4beb60d 100644
--- a/ot_sync.c
+++ b/ot_sync.c
@@ -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) {
154static pthread_t thread_id; 151static pthread_t thread_id;
155void sync_init( ) { 152void 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
162void sync_deinit( ) { 156void sync_deinit( ) {