chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[PATCH] convert udevsend/udevd to DGRAM and single-threaded
[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
}