-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: In stack ending at D66275420, several call sites were migrated from RawFd with explicit `libc::close()` or `nix::unistd::close()` which admit the possibility of failure. Now, `close()` failures are unactionable -- you certainly cannot retry the close operation or risk closing some other FD -- but it may be worth logging when they happen. Bring back explicit close operations and error checking. Test Plan: CI and eyes Reviewed By: jasonwhite Differential Revision: D67157487 fbshipit-source-id: 254cace779c6f993117fbaaf6e0453df6bdc70e5
- Loading branch information
1 parent
ffeb632
commit 5fa9a27
Showing
5 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ rust_binary( | |
"anyhow", | ||
"cap-std", | ||
"clap", | ||
"close-err", | ||
"libc", | ||
"nix", | ||
"rustix", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ rust_library( | |
], | ||
visibility = ["//antlir/antlir2/antlir2_rootless:"], | ||
deps = [ | ||
"close-err", | ||
"nix", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters