Uh oh!
There was an error while loading. Please reload this page.
improve error handling - #116
Merged
Merged
Conversation
1 task
nagisa
reviewed
Feb 19, 2025
nagisa
left a comment
Member
There was a problem hiding this comment.
I think it'd be fine to return None from guess_os_stack when procfs isn't available, but in principle it also doesn't change that for most intents and purposes systems configured that way are sorta broken for the purposes of *-linux-gnu targets at least.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
VirtualQuery is a faillible function that was treated as infaillible https://learn.microsoft.com/en-us/windows/win32/api/memoryapi/nf-memoryapi-virtualquery
lovasoa
commented
Feb 19, 2025
ContributorAuthor
@nagisa I reorganized guess_os_stack to have separate files per backend, addressed your comments, and added more error handling where it was missing on other platforms. |
lovasoa
commented
Feb 21, 2025
ContributorAuthor
Great, thank you very much @nagisa ! |
This file contains hidden or 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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes#115
See sqlpage/SQLPage#814