|
Lines 330-336
def __update_status(self):
Link Here
|
| 330 |
|
330 |
|
| 331 |
def __is_process_running( self, command ): |
331 |
def __is_process_running( self, command ): |
| 332 |
for proc in psutil.process_iter(): |
332 |
for proc in psutil.process_iter(): |
| 333 |
cmdline = proc.cmdline() if callable(proc.cmdline) else proc.cmdline |
333 |
try: |
|
|
334 |
cmdline = proc.cmdline() if callable(proc.cmdline) else proc.cmdline |
| 335 |
except psutil.NoSuchProcess: |
| 336 |
continue |
| 334 |
if cmdline and fnmatch.fnmatch(' '.join(cmdline), command): |
337 |
if cmdline and fnmatch.fnmatch(' '.join(cmdline), command): |
| 335 |
return True |
338 |
return True |
| 336 |
return False |
339 |
return False |