def kill_all_auto_processes():
"""
kill all running autoAwsume processes
"""
log.info('Killing all autoAwsume processes')
for proc in psutil.process_iter():
try:
#kill the autoAwsume process if no more auto-refresh profiles remain
process_command = proc.cmdline()
for command_string in process_command:
if 'autoAwsume' in command_string:
log.debug('Found an autoAwsume process, killing it')
#the profile and default_profile environment variables
proc.kill()
except Exception:
pass
评论列表
文章目录