end18 / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

exe and getcwd function for PID 0 on Linux return misleading data #151

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
>>> p = psutil.Process(0)
>>> p.exe
""
>>> p.getcwd()
""

This is inconsistent in case we do:

>>> os.path.exists(p.exe)
False
>>> os.path.exists(p.getcwd())
False

In this case an AccessDenied exception would be more appropriate.

Original issue reported on code.google.com by g.rodola on 22 Feb 2011 at 5:31

GoogleCodeExporter commented 9 years ago
Fixed in r933.

Original comment by g.rodola on 22 Feb 2011 at 5:34

GoogleCodeExporter commented 9 years ago
Same problem occurred on Windows. Fixed in r934.

Original comment by g.rodola on 22 Feb 2011 at 5:52

GoogleCodeExporter commented 9 years ago

Original comment by g.rodola on 20 Mar 2011 at 9:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Updated csets after the SVN -> Mercurial migration:
r933 == revision afd32ffdd5df
r934 == revision 5644e30c9fa9

Original comment by g.rodola on 2 Mar 2013 at 11:59