(ef_open_srv, start_server): Journal must not be written before
empth_init(), because writing calls empth_self(). Move call of journal_startup(). (ef_close_srv, finish_server, panic): Move call of journal_shutdown() for symmetry.
This commit is contained in:
parent
befac7cf83
commit
d62355e76d
3 changed files with 6 additions and 3 deletions
|
@ -320,6 +320,9 @@ start_server(int flags)
|
|||
|
||||
empth_init((void **)&player, flags);
|
||||
|
||||
if (journal_startup() < 0)
|
||||
exit(1);
|
||||
|
||||
empth_create(PP_ACCEPT, player_accept, (50 * 1024), flags,
|
||||
"AcceptPlayers", "Accept network connections", 0);
|
||||
empth_create(PP_KILLIDLE, player_kill_idle, (50 * 1024), flags,
|
||||
|
@ -346,6 +349,7 @@ finish_server(void)
|
|||
#if defined(_WIN32)
|
||||
loc_NTTerm();
|
||||
#endif
|
||||
journal_shutdown();
|
||||
remove(pidfname);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue