summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/opentracker.c b/opentracker.c
index 022f561..1e996d9 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -34,9 +34,10 @@
34#include "ot_livesync.h" 34#include "ot_livesync.h"
35 35
36/* Globals */ 36/* Globals */
37time_t g_now_seconds; 37time_t g_now_seconds;
38char * g_redirecturl = NULL; 38char * g_redirecturl = NULL;
39uint32_t g_tracker_id; 39uint32_t g_tracker_id;
40volatile int g_opentracker_running = 1;
40 41
41static char * g_serverdir = NULL; 42static char * g_serverdir = NULL;
42 43
@@ -51,6 +52,7 @@ static void panic( const char *routine ) {
51static void signal_handler( int s ) { 52static void signal_handler( int s ) {
52 if( s == SIGINT ) { 53 if( s == SIGINT ) {
53 signal( SIGINT, SIG_IGN); 54 signal( SIGINT, SIG_IGN);
55 g_opentracker_running = 0;
54 56
55 trackerlogic_deinit(); 57 trackerlogic_deinit();
56 exit( 0 ); 58 exit( 0 );