Skip to content

Return AutoCloseFD in open-like functions#15346

Merged
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:return-owned-fd
Feb 26, 2026
Merged

Return AutoCloseFD in open-like functions#15346
Ericson2314 merged 1 commit intoNixOS:masterfrom
obsidiansystems:return-owned-fd

Conversation

@amaanq
Copy link
Member

@amaanq amaanq commented Feb 26, 2026

Motivation

This reflects the fact that it is returning a new, "owned" file descriptor, that it is the caller's responsibility to close.


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

This reflects the fact that it is returning a new, "owned" file
descriptor, that it is the caller's responsibility to close.

Co-authored-by: Amaan Qureshi <git@amaanq.com>
@github-actions github-actions bot added the new-cli Relating to the "nix" command label Feb 26, 2026
@Ericson2314
Copy link
Member

I think this will help clear up what we should be doing for #15258 in particular

@Ericson2314 Ericson2314 added this pull request to the merge queue Feb 26, 2026
Merged via the queue into NixOS:master with commit ee955b3 Feb 26, 2026
15 checks passed
@Ericson2314 Ericson2314 deleted the return-owned-fd branch February 26, 2026 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-cli Relating to the "nix" command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants