Finally merge the journal patch:
(keep_journal): New econfig key. (player_main): Log player login and logout. (recvclient): Log player input. (ef_open_srv, ef_close_srv): Log startup and shutdown. (update_main): Log update. Support the common SIGHUP log rotation idiom: (empth_wait_for_shutdown, empth_wait_for_signal): Rename. [EMPTH_LWP, EMPTH_POSIX] (empth_init, empth_wait_for_signal): Wait for SIGHUP as well. (main) [SIGHUP]: Reopen journal when empth_wait_for_signal() returns SIGHUP.
This commit is contained in:
parent
ff2a162587
commit
1ca0b5cb2b
13 changed files with 239 additions and 9 deletions
|
@ -46,6 +46,7 @@
|
|||
#include "update.h"
|
||||
#include "common.h"
|
||||
#include "optlist.h"
|
||||
#include "journal.h"
|
||||
#include "server.h"
|
||||
#include <stdlib.h>
|
||||
#if !defined(_WIN32)
|
||||
|
@ -92,6 +93,7 @@ update_main(void *unused)
|
|||
* happiness, and printing out the state of the nation)
|
||||
*/
|
||||
logerror("production update (%d etus)", etu);
|
||||
journal_update(etu);
|
||||
memset(pops, 0, sizeof(pops));
|
||||
memset(air_money, 0, sizeof(air_money));
|
||||
memset(sea_money, 0, sizeof(sea_money));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue