Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
features: wrap EPERM errors from all probe APIs
In an attempt to simplify the switch blocks in all types of feature probes, lift the arbitrary EPERM wrapping exception. Also, move the call to fd.Close() out of the switch statement to live closer to the call that returns the fd. The fd can always be immediately closed. Signed-off-by: Timo Beckers <timo@isovalent.com>
- Loading branch information
Showing
3 changed files
with
12 additions
and
29 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
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