Bug 1064960 - [mozprocess] Guard against the output thread trying to join with itself. r=ahal

This commit is contained in:
Pankaj Malhotra(:bitgeeky) 2014-11-04 02:35:00 +01:00
Родитель 6edb26e9b9
Коммит 945b5e8e0b
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -812,7 +812,7 @@ falling back to not using job objects for managing child processes"""
- '0' if the process ended without failures
"""
if self.outThread:
if self.outThread and self.outThread is not threading.current_thread():
# Thread.join() blocks the main thread until outThread is finished
# wake up once a second in case a keyboard interrupt is sent
count = 0