From 85df3dbc016578481bf6c7e532e40c657a0b9b50 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 11 Dec 2010 15:50:56 +0000 Subject: Open syslog connection before dropping privileges --- ot_stats.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'ot_stats.c') diff --git a/ot_stats.c b/ot_stats.c index b6469f9..064f364 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -745,17 +745,10 @@ static pthread_t thread_id; void stats_init( ) { ot_start_time = g_now_seconds; pthread_create( &thread_id, NULL, stats_worker, NULL ); -#ifdef WANT_SYSLOGS - openlog( "opentracker", 0, LOG_USER ); - setlogmask(LOG_UPTO(LOG_INFO)); -#endif } void stats_deinit( ) { pthread_cancel( thread_id ); -#ifdef WANT_SYSLOGS - closelog(); -#endif } const char *g_version_stats_c = "$Source$: $Revision$\n"; -- cgit v1.2.3