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
These 3 functions have the peculiarity that we read multiple files in /proc to
extract the information we need.
While doing so we ignore ENOENT (no such file) errors because that means a
certain file/thread/connection disappeared on us while iterating:
https://code.google.com/p/psutil/source/browse/tags/release-0.5.0/psutil/_pslinux.py#601
https://code.google.com/p/psutil/source/browse/tags/release-0.5.0/psutil/_pslinux.py#715
https://code.google.com/p/psutil/source/browse/tags/release-0.5.0/psutil/_pslinux.py#778
That might also mean, though, that also the *process* disappeared on us, and
that's not taken into accout.
The risk is that if we hit the race condition we get an empty list as a result,
meaning the process has no threads/files/connections, while instead we should
get a NoSuchProcess exception.
From g.rodola on June 28, 2012 17:23:03
Original issue: http://code.google.com/p/psutil/issues/detail?id=292
The text was updated successfully, but these errors were encountered: