Bug 911249 - Followup for WindowsError, Access denied. r=ted

This commit is contained in:
Mihnea Dobrescu-Balaur 2013-08-30 18:55:10 -07:00
Родитель b3c542d523
Коммит ed2ac8cfd0
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -538,7 +538,10 @@ class Automation(object):
return env
def killPid(self, pid):
os.kill(pid, getattr(signal, "SIGKILL", signal.SIGTERM))
try:
os.kill(pid, getattr(signal, "SIGKILL", signal.SIGTERM))
except WindowsError:
self.log.info("Failed to kill process %d." % pid)
if IS_WIN32:
PeekNamedPipe = ctypes.windll.kernel32.PeekNamedPipe