Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX correct proc_pidinfo() handling #909

Merged
merged 7 commits into from
Oct 5, 2016
Merged

Conversation

giampaolo
Copy link
Owner

The error handling of proc_pidinfo() was incorrect and could lead to raise OSError with no exception set for Process.open_files() and Process.connections() methods.
This PR refactors proc_pidinfo and invoke the DRY principle so that proc_pidinfo stays in a wrapper and the error handling occurs in there only.

@giampaolo giampaolo merged commit f06f4a8 into master Oct 5, 2016
@giampaolo giampaolo deleted the osx-proc-pidinfo-refact branch October 5, 2016 19:46
@giampaolo giampaolo restored the osx-proc-pidinfo-refact branch October 5, 2016 20:21
@giampaolo giampaolo deleted the osx-proc-pidinfo-refact branch October 5, 2016 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant