From 63f5334d3cf14334a948e60154d2854f38100b4a Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Fri, 25 Jan 2013 00:44:09 +0100 Subject: [PATCH] compat: ckmake: do not start all build at the same time When all builds are started at the same time this causes problems like, because all threads want to access the same file. In the compat-drivers build this resulted in this error for some threads: ./scripts/gen-compat-autoconf.sh: /usr/bin/env: bad interpreter: Text file busy Signed-off-by: Hauke Mehrtens --- bin/ckmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ckmake b/bin/ckmake index f5f46b01bf04..3d30bee84914 100755 --- a/bin/ckmake +++ b/bin/ckmake @@ -22,6 +22,7 @@ import signal from Queue import * from threading import Thread, Lock from shutil import copytree, ignore_patterns, rmtree, copyfileobj +from time import sleep releases_processed = [] releases_baking = [] @@ -277,6 +278,7 @@ class kernel_set(): def kick_threads(self): for rel in self.releases: self.queue.put(rel) + sleep(1) def wait_threads(self): self.queue.join() def update_status(self, rel, status): -- 2.30.2