Changeset 4328
- Timestamp:
- 03/08/09 12:36:59 (4 years ago)
- Files:
-
- 1 modified
-
trunk/umit/core/BGProcess.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/umit/core/BGProcess.py
r4240 r4328 41 41 pid = self._get_pid() 42 42 if isinstance(pid, int): 43 return not bool(self._stopped(pid)) 43 res = self._stopped(pid) 44 if isinstance(res, tuple): 45 # It is assumed the process is still running if it gives an 46 # error different than "No such process". 47 return True 48 else: 49 return not bool(res) 44 50 else: 45 51 return False
