зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1434932 - [mozprocess] ProcessHandler.wait() doesn't immediately return with timeout=0. r=ahal
MozReview-Commit-ID: 6ArknLHR933 --HG-- extra : rebase_source : c95ca78311957a7c93b69a398c2c6127f2096c09
This commit is contained in:
Родитель
087f092867
Коммит
067a604727
|
@ -856,7 +856,7 @@ falling back to not using job objects for managing child processes""", file=sys.
|
|||
while self.reader.is_alive():
|
||||
self.reader.thread.join(timeout=1)
|
||||
count += 1
|
||||
if timeout and count > timeout:
|
||||
if timeout is not None and count > timeout:
|
||||
return None
|
||||
|
||||
self.returncode = self.proc.wait()
|
||||
|
|
|
@ -64,7 +64,7 @@ class ProcTestWait(proctest.ProcTest):
|
|||
cwd=here)
|
||||
|
||||
p.run()
|
||||
p.wait(timeout=5)
|
||||
p.wait(timeout=0)
|
||||
|
||||
self.determine_status(p, True, ())
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче