You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
>>> p = psutil.Process(0)
>>> p.name
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python26\Lib\site-packages\psutil\psutil.py", line 106, in name
self.deproxy()
File "C:\Python26\Lib\site-packages\psutil\psutil.py", line 65, in deproxy
self._procinfo = _platform_impl.get_process_info(self._procinfo.pid)
File "C:\Python26\Lib\site-packages\psutil\_psmswindows.py", line 16, in
get_p
rocess_info
infoTuple = _psutil_mswindows.get_process_info(pid)
WindowsError: [Error 87] Parameter incorrect
PID 0 on Windows refers to "System Idle Process", a special process from
which we are not supposed to fetch any information.
A special case for this process should be implemented so that "name"
property is the only information we provide for it.
From billiej...@gmail.com on February 21, 2009 00:20:57
Original issue: http://code.google.com/p/psutil/issues/detail?id=16
The text was updated successfully, but these errors were encountered: