summaryrefslogtreecommitdiffstats
path: root/syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'syslog.c')
-rw-r--r--syslog.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/syslog.c b/syslog.c
index 416740b..fa4a9b3 100644
--- a/syslog.c
+++ b/syslog.c
@@ -276,3 +276,11 @@ void log_init(void)
klog_open();
openlog("procd", LOG_PID, LOG_DAEMON);
}
+
+void log_shutdown(void)
+{
+ ustream_free(&slog.stream);
+ ustream_free(&klog.stream);
+ close(slog.fd.fd);
+ close(klog.fd.fd);
+}