abort();
}
+CCMD(logstats) { showstats(); }
+
CCMD(dump);
/* messing with our head: */
{ "h", ccmd_help },
{ "flush", ccmd_flush },
{ "stop", ccmd_stop },
+ { "logstats", ccmd_logstats },
{ "dump q", ccmd_dump, 0,0 },
{ "dump a", ccmd_dump, 0,1 },
.B stop
Log statistics and exit. (Same effect as SIGTERM or SIGINT.)
.TP
+.B logstats
+Log statistics so far and zero the stats counters. Stats are also
+logged when an input file is completed and just before tidy
+termination.
+.TP
.BR "dump q" | a
Writes information about innduct's state to a plain text file
.IR feedfile \fB_dump\fR.
void statemc_lock(void);
void init_signals(void);
void statemc_init(void);
+void showstats(void);
#define SMS(newstate, periods, why) \
(statemc_setstate(sm_##newstate,(periods),#newstate,(why)))
void preterminate(void) {
if (in_child) return;
+ showstats();
+}
+
+void showstats(void) {
notice_processed(main_input_file,0,"feedfile","");
notice_processed(flushing_input_file,0,"flushing","");
if (backlog_input_file)