compat: ckmake: do not start all build at the same time
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 24 Jan 2013 23:44:09 +0000 (00:44 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 24 Jan 2013 23:48:21 +0000 (00:48 +0100)
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 <hauke@hauke-m.de>
bin/ckmake

index f5f46b01bf04918524f1c34e7ddf4a945ddf589e..3d30bee84914ba4bd40026fed015699d081b92c3 100755 (executable)
@@ -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):