Skip to content

fix: check the close of private files state creates - #95

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

HaoZeke merged 1 commit into
developfrom
fix/state-createprivate-close-check

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

state.createPrivateAt returns the error from the close of the file it
creates, and leaves that errno in sys.last_errno. A close that a
signal interrupts is success and is not retried, because Linux has
already freed the descriptor. A write that a network file system
reports lost is visible at that close, so the call no longer returns
success for a file whose bytes never reached the server. A close
after an earlier error is ignored and the earlier errno is kept. The
created name stays in place when the call fails.

state.createPrivateAt returns the error from the close of the file it
creates, and leaves that errno in sys.last_errno. A close that a
signal interrupts is success and is not retried, because Linux has
already freed the descriptor. A write that a network file system
reports lost is visible at that close, so the call no longer returns
success for a file whose bytes never reached the server. A close
after an earlier error is ignored and the earlier errno is kept. The
created name stays in place when the call fails.
@HaoZeke
HaoZeke merged commit fcb4a71 into develop Nov 26, 2026
8 checks passed
@HaoZeke
HaoZeke deleted the fix/state-createprivate-close-check branch November 26, 2026 01:00
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