diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-10 17:53:55 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-12-10 17:55:29 +0000 |
commit | d754ddcec78f5e264100ceda854e8412679d6866 (patch) | |
tree | edd381a7e5f2057e299223cad724f764965630fa /bitbake | |
parent | 4398019673c6e638f4a5c9b4b2d7110ab0452671 (diff) | |
download | poky-d754ddcec78f5e264100ceda854e8412679d6866.tar.gz |
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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py index afc8e9bd49..8b1aea9a10 100644 --- a/bitbake/lib/bb/process.py +++ b/bitbake/lib/bb/process.py | |||
@@ -84,7 +84,7 @@ def _logged_communicate(pipe, log, input): | |||
84 | while pipe.poll() is None: | 84 | while pipe.poll() is None: |
85 | rlist = rin | 85 | rlist = rin |
86 | try: | 86 | try: |
87 | r,w,e = select.select (rlist, [], []) | 87 | r,w,e = select.select (rlist, [], [], 1) |
88 | except OSError as e: | 88 | except OSError as e: |
89 | if e.errno != errno.EINTR: | 89 | if e.errno != errno.EINTR: |
90 | raise | 90 | raise |