unix-socket: reset logging api's properly

Lack of proper reset lead to logs not being written after the first
pcap had been processed.
pull/963/head
Victor Julien 12 years ago
parent fd56acd4b3
commit 5cdd9b460a

@ -424,6 +424,11 @@ void RunOutputFreeList(void)
}
}
static TmModule *pkt_logger_module = NULL;
static TmModule *tx_logger_module = NULL;
static TmModule *file_logger_module = NULL;
static TmModule *filedata_logger_module = NULL;
/**
* Cleanup the run mode.
*/
@ -444,13 +449,13 @@ void RunModeShutDown(void)
SCFree(output);
}
/* reset logger pointers */
pkt_logger_module = NULL;
tx_logger_module = NULL;
file_logger_module = NULL;
filedata_logger_module = NULL;
}
static TmModule *pkt_logger_module = NULL;
static TmModule *tx_logger_module = NULL;
static TmModule *file_logger_module = NULL;
static TmModule *filedata_logger_module = NULL;
/** \internal
* \brief add Sub RunModeOutput to list for Submodule so we can free
* the output ctx at shutdown and unix socket reload */

Loading…
Cancel
Save