Changeset 92889 in vbox
- Timestamp:
- Dec 13, 2021 9:33:56 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148844
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/ValidationKit/common/utils.py ¶
r92888 r92889 35 35 # Standard Python imports. 36 36 import datetime; 37 import errno; 37 38 import os; 38 39 import platform; … … 984 985 hProcess.Close(); 985 986 fRc = True; 986 elif sHostOs == 'linux':987 fRc = os.path.exists('/proc/%s' % (uPid,));988 987 else: 988 fRc = False; 989 989 try: 990 990 os.kill(uPid, 0); 991 991 fRc = True; 992 except: ## @todo check error code. 993 fRc = False; 992 except OSError as oXcpt: 993 if oXcpt.errno == errno.EPERM: 994 fRc = True; 995 except: 996 pass; 994 997 return fRc; 995 998
Note:
See TracChangeset
for help on using the changeset viewer.