Browse Source

Only kick off udp handlers, when everything is initialised

master
git 7 years ago
parent
commit
9e0443a3a6
  1. 10
      opentracker.c

10
opentracker.c

@ -2,7 +2,7 @@
It is considered beerware. Prost. Skol. Cheers or whatever.
Some of the stuff below is stolen from Fefes example libowfat httpd.
$Id: opentracker.c,v 1.238 2012/05/28 15:24:33 erdgeist Exp $ */
$Id: opentracker.c,v 1.239 2014/10/06 22:32:28 git Exp $ */
/* System */
#include <stdlib.h>
@ -623,9 +623,6 @@ int main( int argc, char **argv ) {
ot_try_bind( serverip, 6969, FLAG_UDP );
}
if( !g_udp_workers )
udp_init( -1, 0 );
#ifdef WANT_SYSLOGS
openlog( "opentracker", 0, LOG_USER );
setlogmask(LOG_UPTO(LOG_INFO));
@ -654,6 +651,9 @@ int main( int argc, char **argv ) {
install_signal_handlers( );
if( !g_udp_workers )
udp_init( -1, 0 );
/* Kick off our initial clock setting alarm */
alarm(5);
@ -662,4 +662,4 @@ int main( int argc, char **argv ) {
return 0;
}
const char *g_version_opentracker_c = "$Source: /home/cvsroot/opentracker/opentracker.c,v $: $Revision: 1.238 $\n";
const char *g_version_opentracker_c = "$Source: /home/cvsroot/opentracker/opentracker.c,v $: $Revision: 1.239 $\n";
Loading…
Cancel
Save