42#define USE_INTERRUPT_HANDLERS
45#ifdef USE_INTERRUPT_HANDLERS
46#define save_and_exit(sig) \
47if (S_S_RUNNING == server_state()) { \
48 save_game_auto(#sig, AS_INTERRUPT); \
49 save_system_close(); \
67 log_normal(
_(
"Setting timeout to 0. Autogame will stop."));
72 "within one second to make it exit."));
98 "while handling SIGPIPE.\n");
113#ifdef USE_INTERRUPT_HANDLERS
void fc_fprintf(FILE *stream, const char *format,...) fc__attribute((__format__(__printf__
#define log_normal(message,...)
void setup_interrupt_handlers(void)
void signal_timer_free(void)
struct packet_game_info info
const char * fc_strerror(fc_errno err)
fc_errno fc_get_errno(void)
void timer_destroy(struct timer *t)
void timer_start(struct timer *t)
double timer_read_seconds(struct timer *t)
struct timer * timer_renew(struct timer *t, enum timer_timetype type, enum timer_use use, const char *name)