Next: , Previous: syslog; vsyslog, Up: Submitting Syslog Messages


18.2.3 closelog

The symbols referred to in this section are declared in the file syslog.h.

— Function: void closelog (void)

closelog closes the current Syslog connection, if there is one. This include closing the dev/log socket, if it is open.

There is very little reason to use this function. It does not flush any buffers; you can reopen a Syslog connection without closing it first; The connection gets closed automatically on exec or exit. closelog has primarily aesthetic value.