summaryrefslogtreecommitdiffstats
path: root/plugins/imklog/linux.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-03 12:52:53 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-03 12:52:53 +0200
commit1a08fa5ded3087a3b60d87a20d25a4ec589eba21 (patch)
tree9dd51c4b9db468be41a63f4286029d95bef0bf0b /plugins/imklog/linux.c
parent5f397495524ffe460fe93d2f1069f3077f48b7b0 (diff)
parentec0e2c3e7df6addc02431628daddfeae49b92af7 (diff)
downloadrsyslog-1a08fa5ded3087a3b60d87a20d25a4ec589eba21.tar.gz
rsyslog-1a08fa5ded3087a3b60d87a20d25a4ec589eba21.tar.xz
rsyslog-1a08fa5ded3087a3b60d87a20d25a4ec589eba21.zip
Merge branch 'master' into oracle
Diffstat (limited to 'plugins/imklog/linux.c')
-rw-r--r--plugins/imklog/linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imklog/linux.c b/plugins/imklog/linux.c
index 198b7c0e..0dd4320d 100644
--- a/plugins/imklog/linux.c
+++ b/plugins/imklog/linux.c
@@ -144,7 +144,7 @@ static enum LOGSRC GetKernelLogSrc(void)
return(kernel);
}
- if ( (kmsg = open(_PATH_KLOG, O_RDONLY)) < 0 )
+ if ( (kmsg = open(_PATH_KLOG, O_RDONLY|O_CLOEXEC)) < 0 )
{
imklogLogIntMsg(LOG_ERR, "imklog: Cannot open proc file system, %d.\n", errno);
ksyslog(7, NULL, 0); /* TODO: check this, implement more */