summaryrefslogtreecommitdiffstats
path: root/runtime/stream.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-05 12:44:57 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-05 12:44:57 +0100
commita5cd509be736fcff3c8ae3104712d2fe85776416 (patch)
treedde68f6af795daeb9409bfbd6b6bb4ff8fe6ba6d /runtime/stream.c
parent037576dcc79bb93b78ec8d91305fa605f8bf7a3d (diff)
downloadrsyslog-a5cd509be736fcff3c8ae3104712d2fe85776416.tar.gz
rsyslog-a5cd509be736fcff3c8ae3104712d2fe85776416.tar.xz
rsyslog-a5cd509be736fcff3c8ae3104712d2fe85776416.zip
bugfix: named pipes did no longer work (they always got an open error)
this was a regression from the omfile rewrite in 4.5.0
Diffstat (limited to 'runtime/stream.c')
-rw-r--r--runtime/stream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/stream.c b/runtime/stream.c
index ac90df28..2d1e9380 100644
--- a/runtime/stream.c
+++ b/runtime/stream.c
@@ -211,6 +211,7 @@ doPhysOpen(strm_t *pThis)
}
pThis->fd = open((char*)pThis->pszCurrFName, iFlags, pThis->tOpenMode);
+ DBGPRINTF("file '%s' opened as #%d with mode %d\n", pThis->pszCurrFName, pThis->fd, pThis->tOpenMode);
if(pThis->fd == -1) {
int ierrnoSave = errno;
dbgoprint((obj_t*) pThis, "open error %d, file '%s'\n", errno, pThis->pszCurrFName);