コード例 #1
0
 def num_handles(self):
     try:
         return cext.proc_num_handles(self.pid)
     except OSError as err:
         if err.errno in ACCESS_DENIED_SET:
             return cext.proc_num_handles_2(self.pid)
         raise
コード例 #2
0
ファイル: _pswindows.py プロジェクト: 2089764/psutil
 def num_handles(self):
     try:
         return cext.proc_num_handles(self.pid)
     except OSError as err:
         if err.errno in ACCESS_DENIED_SET:
             return cext.proc_num_handles_2(self.pid)
         raise
コード例 #3
0
 def num_handles(self):
     try:
         return cext.proc_num_handles(self.pid)
     except OSError:
         err = sys.exc_info()[1]
         if err.errno in ACCESS_DENIED_SET:
             return cext.proc_num_handles_2(self.pid)
         raise
コード例 #4
0
ファイル: _pswindows.py プロジェクト: dangpu/momoko
 def num_handles(self):
     try:
         return cext.proc_num_handles(self.pid)
     except OSError:
         err = sys.exc_info()[1]
         if err.errno in ACCESS_DENIED_SET:
             return cext.proc_num_handles_2(self.pid)
         raise