Skip to content
Snippets Groups Projects
Commit 478c424c authored by Simon McVittie's avatar Simon McVittie
Browse files

logger: When we reopen a file, make sure to record its new identity


Otherwise, after reopening a deleted or replaced file, we would reopen
it once per line, because its inode number constantly differs from
the original inode number.

After commit 1f502cb4 "logger: Fix always re-opening files when
--log-fd is used", this was the only remaining place where we assign
to self->file_fd without also assigning to self->file_stat.

Fixes: 8f65507d "logger: Recreate output log files if they get deleted"
Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent db1bca1f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment