chiark / gitweb /
[PATCH] sync klibc with release 0.95
[elogind.git] / klibc / klibc / closelog.c
1 /*
2  * closelog.c
3  */
4
5 #include <syslog.h>
6 #include <unistd.h>
7
8 extern int __syslog_fd;
9
10 void closelog(void)
11 {
12   int logfd = __syslog_fd;
13
14   if ( logfd != -1 ) {
15     close(logfd);
16     __syslog_fd = -1;
17   }
18 }