mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 13:55:43 +00:00
Bug 1064960 - [mozprocess] Guard against the output thread trying to join with itself. r=ahal
This commit is contained in:
parent
6edb26e9b9
commit
945b5e8e0b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user