zhengzheng / psutil

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

get_open_files() ignoring files which cannot be accessed #310

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is due to os.path.isfile(), which we use internally, and that returns 
False in case of EPERM/EACCES:
http://mail.python.org/pipermail/python-dev/2012-June/120787.html

When that happens the file/path examined gets skipped, and it shouldn't, as it 
might be an actual file.
Instead AccessDenied should be raised, as we have no way to tell whether that 
is a file or not.

Fixed in r1483.

Original issue reported on code.google.com by g.rodola on 21 Jul 2012 at 12:47

GoogleCodeExporter commented 8 years ago
Fixed in version 0.6.0, released just now.

Original comment by g.rodola on 13 Aug 2012 at 4:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Updated csets after the SVN -> Mercurial migration:
r1483 == revision f033370c305a

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