Commit c44ca12d authored by fooinha's avatar fooinha

Call closelog in syslog sink's destructor

parent 375b88c1
......@@ -64,7 +64,9 @@ public:
::openlog(ident.c_str(), option, syslog_facility_from_name(facility));
}
virtual ~syslog_sink() = default;
virtual ~syslog_sink() {
::closelog();
}
syslog_sink(const syslog_sink&) = delete;
syslog_sink& operator=(const syslog_sink&) = delete;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment