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:15 +0000 |
commit | 5223ffb5b6a46d8b3f6ac3362bd2672e2edf2691 (patch) | |
tree | 6e119b88e4b0739487112b432f2f212078783746 /lib/bb/process.py | |
parent | 8de14b2a481d61424eb32fd0234f7a38a961a75b (diff) | |
download | bitbake-contrib-5223ffb5b6a46d8b3f6ac3362bd2672e2edf2691.tar.gz |
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/process.py')
-rw-r--r-- | lib/bb/process.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/process.py b/lib/bb/process.py index afc8e9bd4..8b1aea9a1 100644 --- a/lib/bb/process.py +++ b/lib/bb/process.py @@ -84,7 +84,7 @@ def _logged_communicate(pipe, log, input): while pipe.poll() is None: rlist = rin try: - r,w,e = select.select (rlist, [], []) + r,w,e = select.select (rlist, [], [], 1) except OSError as e: if e.errno != errno.EINTR: raise |