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

Special case Process.exe for PID 0 & 4 #529

Merged
merged 2 commits into from
Sep 15, 2014
Merged

Special case Process.exe for PID 0 & 4 #529

merged 2 commits into from
Sep 15, 2014

Conversation

mrjefftang
Copy link
Collaborator

Solves issue #528 and #414

if self.pid == 0:
raise AccessDenied(self.pid, self._name)
elif self.pid == 4:
raise AccessDenied(self.pid, self._name)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rephrase it like this:

if self.pid in (0, 4):
    raise AccessDenied(self.pid, self._name)

...then I will merge

@giampaolo
Copy link
Owner

Please rephrase your patch like this:

if self.pid in (0, 4):
    raise AccessDenied(self.pid, self._name)

...then I will merge your PR.

@mrjefftang
Copy link
Collaborator Author

Done.

giampaolo added a commit that referenced this pull request Sep 15, 2014
Special case Process.exe for PID 0 & 4
@giampaolo giampaolo merged commit 2400779 into giampaolo:master Sep 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants