This patch adds a stop function to the module which closes the connection to the log system. Signed-off-by: Eric Leblond <eric@xxxxxx> --- output/ulogd_output_SYSLOG.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/output/ulogd_output_SYSLOG.c b/output/ulogd_output_SYSLOG.c index 8982e7e..8dd93f3 100644 --- a/output/ulogd_output_SYSLOG.c +++ b/output/ulogd_output_SYSLOG.c @@ -151,10 +151,13 @@ static int syslog_configure(struct ulogd_pluginstance *pi, return 0; } -static void syslog_fini(void) +static int syslog_fini(struct ulogd_pluginstance *pi) { closelog(); + + return 0; } + static int syslog_start(struct ulogd_pluginstance *pi) { openlog("ulogd", LOG_NDELAY|LOG_PID, LOG_DAEMON); @@ -177,6 +180,7 @@ static struct ulogd_plugin syslog_plugin = { .configure = &syslog_configure, .start = &syslog_start, + .stop = &syslog_fini, .interp = &_output_syslog, .version = ULOGD_VERSION, }; -- 1.5.4.3 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html