예제 #1
0
 def open_files(self):
     """Return files opened by process as a list of namedtuples."""
     rawlist = cext.proc_open_files(self.pid)
     return [_common.popenfile(path, fd) for path, fd in rawlist]
예제 #2
0
파일: _psbsd.py 프로젝트: 2089764/psutil
 def open_files(self):
     """Return files opened by process as a list of namedtuples."""
     rawlist = cext.proc_open_files(self.pid)
     return [_common.popenfile(path, fd) for path, fd in rawlist]