Add back in try/except for checking files

This commit is contained in:
Joseph Hall 2014-04-14 08:45:29 -06:00
parent ac28d1675d
commit 3cee1f9f79

View File

@ -3480,7 +3480,12 @@ def open_files(by_pid=False):
fd_.append('{0}/fd/{1}'.format(ppath, fpath))
for tid in tids:
fd_.append(os.path.realpath('{0}/task/{1}/exe'.format(ppath, tid)))
try:
fd_.append(
os.path.realpath('{0}/task/{1}/exe'.format(ppath, tid))
)
except OSError:
continue
for tpath in os.listdir('{0}/task/{1}/fd'.format(ppath, tid)):
fd_.append('{0}/task/{1}/fd/{2}'.format(ppath, tid, tpath))