mirror of
git://erdgeist.org/opentracker
synced 2025-03-28 13:36:20 +01:00
Install default signal handlers before spawning first thread
This commit is contained in:
parent
62807ad205
commit
8fd8a54c4e
1 changed files with 2 additions and 1 deletions
|
@ -761,6 +761,8 @@ int main(int argc, char **argv) {
|
|||
ot_try_bind(serverip, 6969, FLAG_UDP);
|
||||
}
|
||||
|
||||
defaul_signal_handlers();
|
||||
|
||||
#ifdef WANT_SYSLOGS
|
||||
openlog("opentracker", 0, LOG_USER);
|
||||
setlogmask(LOG_UPTO(LOG_INFO));
|
||||
|
@ -783,7 +785,6 @@ int main(int argc, char **argv) {
|
|||
io_setcookie(g_self_pipe[0], (void *)FLAG_SELFPIPE);
|
||||
io_wantread(g_self_pipe[0]);
|
||||
|
||||
defaul_signal_handlers();
|
||||
/* Init all sub systems. This call may fail with an exit() */
|
||||
trackerlogic_init();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue