diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-03 12:52:53 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-03 12:52:53 +0200 |
commit | 1a08fa5ded3087a3b60d87a20d25a4ec589eba21 (patch) | |
tree | 9dd51c4b9db468be41a63f4286029d95bef0bf0b /plugins/imklog/linux.c | |
parent | 5f397495524ffe460fe93d2f1069f3077f48b7b0 (diff) | |
parent | ec0e2c3e7df6addc02431628daddfeae49b92af7 (diff) | |
download | rsyslog-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.c | 2 |
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 */ |