mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
bitbake: process: Add timeout to select call
On some machines, a hang has been noticed where the system sits in the select call despite the task having completed. The exact reasons for this as unknown but adding a timeout unblocked the builds and resolved the hangs in question. (Bitbake rev: 5223ffb5b6a46d8b3f6ac3362bd2672e2edf2691) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -84,7 +84,7 @@ def _logged_communicate(pipe, log, input):
|
|||||||
while pipe.poll() is None:
|
while pipe.poll() is None:
|
||||||
rlist = rin
|
rlist = rin
|
||||||
try:
|
try:
|
||||||
r,w,e = select.select (rlist, [], [])
|
r,w,e = select.select (rlist, [], [], 1)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno != errno.EINTR:
|
if e.errno != errno.EINTR:
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user