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

WindowsError can be raised on Windows for resume() and suspend() methods #145

Closed
giampaolo opened this issue May 23, 2014 · 2 comments
Closed

Comments

@giampaolo
Copy link
Owner

From g.rodola on December 27, 2010 19:21:20

What steps will reproduce the problem?  
>>> psutil.Process(0).resume()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "psutil\__init__.py", line 420, in resume
    self._platform_impl.resume_process()
  File "psutil\_psmswindows.py", line 198, in resume_process
    return _psutil_mswindows.resume_process(self.pid)
WindowsError: [Error 87] The parameter is incorrect
>>>
>>>
>>> psutil.Process(4).resume()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "psutil\__init__.py", line 420, in resume
    self._platform_impl.resume_process()
  File "psutil\_psmswindows.py", line 198, in resume_process
    return _psutil_mswindows.resume_process(self.pid)
WindowsError: [Error 5] Access is denied
>>> 

What is the expected output?  


What do you see instead?  
In both cases AccessDenied exception should be raised instead.

Original issue: http://code.google.com/p/psutil/issues/detail?id=145

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on December 27, 2010 10:37:51

Fixed in r875 .

Status: FixedInSVN

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 03:57:58

Updated csets after the SVN -> Mercurial migration: r875 == revision 
6e1c7ed0bf5a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant