Browse Source

Reverting last commit. Debug effect not seen.

master
Dirk Engling 13 years ago
parent
commit
14f0a3ceea
  1. 3
      Makefile
  2. 8
      ot_clean.c
  3. 8
      ot_fullscrape.c
  4. 8
      ot_livesync.c
  5. 8
      ot_sync.c

3
Makefile

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.49 2008/10/07 23:45:26 erdgeist Exp $
# $Id: Makefile,v 1.50 2008/10/07 23:53:29 erdgeist Exp $
CC?=gcc
@ -29,7 +29,6 @@ BINDIR?=$(PREFIX)/bin
#FEATURES+=-DWANT_IP_FROM_QUERY_STRING
#FEATURES+=-DWANT_COMPRESSION_GZIP
#FEATURES+=-DWANT_LOG_NETWORKS
#FEATURES+=-DWANT_THREAD_NAME_NP
#FEATURES+=-D_DEBUG_HTTPERROR
FEATURES+=-DWANT_FULLSCRAPE

8
ot_clean.c

@ -8,9 +8,6 @@
#include <string.h>
#include <pthread.h>
#include <sys/uio.h>
#ifdef WANT_THREAD_NAME_NP
#include <pthread_np.h>
#endif
/* Libowfat */
#include "byte.h"
@ -129,13 +126,10 @@ void clean_all_torrents( ) {
static pthread_t thread_id;
void clean_init( void ) {
pthread_create( &thread_id, NULL, clean_worker, NULL );
#ifdef WANT_THREAD_NAME_NP
pthread_set_name_np( thread_id, "opentracker (cleanup)");
#endif
}
void clean_deinit( void ) {
pthread_cancel( thread_id );
}
const char *g_version_clean_c = "$Source: /home/cvsroot/opentracker/ot_clean.c,v $: $Revision: 1.8 $\n";
const char *g_version_clean_c = "$Source: /home/cvsroot/opentracker/ot_clean.c,v $: $Revision: 1.9 $\n";

8
ot_fullscrape.c

@ -15,9 +15,6 @@
#ifdef WANT_COMPRESSION_GZIP
#include <zlib.h>
#endif
#ifdef WANT_THREAD_NAME_NP
#include <pthread_np.h>
#endif
/* Libowfat */
#include "byte.h"
@ -76,9 +73,6 @@ static void * fullscrape_worker( void * args ) {
static pthread_t thread_id;
void fullscrape_init( ) {
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( ) {
@ -236,4 +230,4 @@ static void fullscrape_make( int *iovec_entries, struct iovec **iovector, ot_tas
}
#endif
const char *g_version_fullscrape_c = "$Source: /home/cvsroot/opentracker/ot_fullscrape.c,v $: $Revision: 1.21 $\n";
const char *g_version_fullscrape_c = "$Source: /home/cvsroot/opentracker/ot_fullscrape.c,v $: $Revision: 1.22 $\n";

8
ot_livesync.c

@ -8,9 +8,6 @@
#include <sys/uio.h>
#include <string.h>
#include <pthread.h>
#ifdef WANT_THREAD_NAME_NP
#include <pthread_np.h>
#endif
/* Libowfat */
#include "socket.h"
@ -56,9 +53,6 @@ void livesync_init( ) {
livesync_lastpacket_time = g_now;
pthread_create( &thread_id, NULL, livesync_worker, NULL );
#ifdef WANT_THREAD_NAME_NP
pthread_set_name_np( thread_id, "opentracker (livesync)");
#endif
}
void livesync_deinit() {
@ -165,4 +159,4 @@ static void * livesync_worker( void * args ) {
}
#endif
const char *g_version_livesync_c = "$Source: /home/cvsroot/opentracker/ot_livesync.c,v $: $Revision: 1.3 $\n";
const char *g_version_livesync_c = "$Source: /home/cvsroot/opentracker/ot_livesync.c,v $: $Revision: 1.4 $\n";

8
ot_sync.c

@ -10,9 +10,6 @@
#include <stdio.h>
#include <string.h>
#include <pthread.h>
#ifdef WANT_THREAD_NAME_NP
#include <pthread_np.h>
#endif
/* Libowfat */
#include "scan.h"
@ -154,9 +151,6 @@ 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( ) {
@ -169,4 +163,4 @@ void sync_deliver( int64 socket ) {
#endif
const char *g_version_sync_c = "$Source: /home/cvsroot/opentracker/ot_sync.c,v $: $Revision: 1.7 $\n";
const char *g_version_sync_c = "$Source: /home/cvsroot/opentracker/ot_sync.c,v $: $Revision: 1.8 $\n";
Loading…
Cancel
Save