summaryrefslogtreecommitdiffstats
path: root/runtime/debug.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 /runtime/debug.c
parent5f397495524ffe460fe93d2f1069f3077f48b7b0 (diff)
parentec0e2c3e7df6addc02431628daddfeae49b92af7 (diff)
downloadrsyslog-1a08fa5ded3087a3b60d87a20d25a4ec589eba21.tar.gz
rsyslog-1a08fa5ded3087a3b60d87a20d25a4ec589eba21.tar.bz2
rsyslog-1a08fa5ded3087a3b60d87a20d25a4ec589eba21.zip
Merge branch 'master' into oracle
Diffstat (limited to 'runtime/debug.c')
-rw-r--r--runtime/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/debug.c b/runtime/debug.c
index 96004e47..4ee90226 100644
--- a/runtime/debug.c
+++ b/runtime/debug.c
@@ -1343,7 +1343,7 @@ rsRetVal dbgClassInit(void)
if(pszAltDbgFileName != NULL) {
/* we have a secondary file, so let's open it) */
- if((altdbg = open(pszAltDbgFileName, O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY, S_IRUSR|S_IWUSR)) == -1) {
+ if((altdbg = open(pszAltDbgFileName, O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY|O_CLOEXEC, S_IRUSR|S_IWUSR)) == -1) {
fprintf(stderr, "alternate debug file could not be opened, ignoring. Error: %s\n", strerror(errno));
}
}