Skip to content

fix: check the close of logs gzip writes - #93

Merged
HaoZeke merged 1 commit into
developfrom
fix/logs-gzip-close-check
Nov 26, 2026
Merged

HaoZeke merged 1 commit into
developfrom
fix/logs-gzip-close-check

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Flush, sync and close the temporary archive before renaming it
over the log's .gz name. A failed close returns its errno and
removes the temporary file. The log and any existing archive stay
as they were. A close that a signal interrupts is not retried and
is not an error, since Linux has already freed the descriptor.

Flush, sync and close the temporary archive before renaming it
over the log's .gz name. A failed close returns its errno and
removes the temporary file. The log and any existing archive stay
as they were. A close that a signal interrupts is not retried and
is not an error, since Linux has already freed the descriptor.
@HaoZeke
HaoZeke merged commit be9b092 into develop Nov 26, 2026
8 checks passed
@HaoZeke
HaoZeke deleted the fix/logs-gzip-close-check branch November 26, 2026 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant