summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2024-04-15 23:08:16 +0200
committerDirk Engling <erdgeist@erdgeist.org>2024-04-15 23:08:16 +0200
commit8fd8a54c4ee34e5d879227f261f881f13002f789 (patch)
treef9e972a55366aaf25960f48b2b8e6cfc91c74c61 /opentracker.c
parent62807ad205ea7d4694a69806419ba9d3fbae22bf (diff)
Install default signal handlers before spawning first thread
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c
index 01cb501..497b48d 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -761,6 +761,8 @@ int main(int argc, char **argv) {
761 ot_try_bind(serverip, 6969, FLAG_UDP); 761 ot_try_bind(serverip, 6969, FLAG_UDP);
762 } 762 }
763 763
764 defaul_signal_handlers();
765
764#ifdef WANT_SYSLOGS 766#ifdef WANT_SYSLOGS
765 openlog("opentracker", 0, LOG_USER); 767 openlog("opentracker", 0, LOG_USER);
766 setlogmask(LOG_UPTO(LOG_INFO)); 768 setlogmask(LOG_UPTO(LOG_INFO));
@@ -783,7 +785,6 @@ int main(int argc, char **argv) {
783 io_setcookie(g_self_pipe[0], (void *)FLAG_SELFPIPE); 785 io_setcookie(g_self_pipe[0], (void *)FLAG_SELFPIPE);
784 io_wantread(g_self_pipe[0]); 786 io_wantread(g_self_pipe[0]);
785 787
786 defaul_signal_handlers();
787 /* Init all sub systems. This call may fail with an exit() */ 788 /* Init all sub systems. This call may fail with an exit() */
788 trackerlogic_init(); 789 trackerlogic_init();
789 790