From dfa173b071a19c59201486398afc00b45dbe9cc1 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Wed, 1 Jul 2009 02:48:56 +0000 Subject: Make accesslist function check for the correct signal --- ot_accesslist.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ot_accesslist.c') diff --git a/ot_accesslist.c b/ot_accesslist.c index 11e4317..4eb63a7 100644 --- a/ot_accesslist.c +++ b/ot_accesslist.c @@ -47,12 +47,13 @@ static int accesslist_addentry( ot_hash infohash ) { } /* Read initial access list */ -static void accesslist_readfile( int foo ) { +static void accesslist_readfile( int sig ) { FILE * accesslist_filehandle; ot_hash infohash; char inbuf[512]; - foo = foo; + if( sig != SIGHUP ) return; + accesslist_filehandle = fopen( g_accesslist_filename, "r" ); /* Free accesslist vector in trackerlogic.c*/ @@ -98,7 +99,7 @@ void accesslist_init( ) { /* Passing "0" since read_blacklist_file also is SIGHUP handler */ if( g_accesslist_filename ) { - accesslist_readfile( 0 ); + accesslist_readfile( SIGHUP ); signal( SIGHUP, accesslist_readfile ); } } -- cgit v1.2.3