upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/imgui/imgui_draw.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 16:44:57 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 16:44:57 +0000
commit74f1d8598a6f603fdfaf6c0487375c40166b76ec (patch)
tree78300c2b30621c356461396392eb774139ab236d /src/imgui/imgui_draw.cpp
parentcc21a1db50c14c0c41986e9137432e5ba8918b2d (diff)
log: do not latch the roll off when logrotate won the race
The latch added in 456b3b4 treats every rename() failure as permanent. One is not: if an external rotator moves debug.log between the size check and the rename, the rename fails ENOENT. Nothing is wrong -- the file has just been rotated by someone else, and the reopen above has already recreated it -- but latching there would switch the cap off for the rest of the run on a race the operator cannot see or fix. Treat ENOENT as "already rotated" and carry on. It cannot loop: the reopen leaves an empty file, so the next line's size check does not fire.
Diffstat (limited to 'src/imgui/imgui_draw.cpp')
0 files changed, 0 insertions, 0 deletions