HardySimpson / zlog

A reliable, high-performance, thread safe, flexsible, clear-model, pure C logging library.
Apache License 2.0
2.25k stars 721 forks source link

zlog-1.2.16版本中转档失败问题 #240

Open royzsss opened 1 year ago

royzsss commented 1 year ago

lockfile.c:31中open函数的flags参数为O_RDWD | O_CREAT | O_EXCL感觉会导致文件锁存在后报错打开失败,从而使zlog_rotater_trylock函数返回错误,日志文件转档失败 同时zlog_rotater_trylock接口在出错返回后不会进行unlock 请确认是否存在该问题?