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:
Henrik Skupin 2018-02-01 16:36:28 +01:00
Родитель 087f092867
Коммит 067a604727
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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, ())