mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-18 06:20:42 +01:00
Merge pull request #1859 from rgerhards/i-1832
omfile: hande file open error via SUSPEND mode
This commit is contained in:
commit
f4f53b06eb
@ -52,6 +52,7 @@ TESTS += \
|
||||
invalid_nested_include.sh \
|
||||
omfwd-keepalive.sh \
|
||||
omfile-read-only-errmsg.sh \
|
||||
omfile-read-only.sh \
|
||||
omfile_both_files_set.sh \
|
||||
msgvar-concurrency.sh \
|
||||
localvar-concurrency.sh \
|
||||
|
||||
@ -1062,9 +1062,8 @@ CODESTARTcommitTransaction
|
||||
}
|
||||
|
||||
finalize_it:
|
||||
if (pData->bDynamicName &&
|
||||
(iRet == RS_RET_FILE_OPEN_ERROR || iRet == RS_RET_FILE_NOT_FOUND) )
|
||||
iRet = RS_RET_OK;
|
||||
if(iRet == RS_RET_FILE_OPEN_ERROR || iRet == RS_RET_FILE_NOT_FOUND)
|
||||
iRet = pData->bDynamicName ? RS_RET_OK : RS_RET_SUSPENDED;
|
||||
pthread_mutex_unlock(&pData->mutWrite);
|
||||
ENDcommitTransaction
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user