From d754ddcec78f5e264100ceda854e8412679d6866 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 10 Dec 2013 17:53:55 +0000 Subject: 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 --- bitbake/lib/bb/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/bb/process.py b/bitbake/lib/bb/process.py index afc8e9b..8b1aea9 100644 --- a/bitbake/lib/bb/process.py +++ b/bitbake/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 -- cgit v1.1