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:Simon McVittie <smcv@collabora.com>
parent
db1bca1f
No related branches found
No related tags found
This commit is part of merge request !743. Comments created here will be created in the context of that merge request.
Please register or sign in to comment