diff options
author | Dongxiao Xu <dongxiao.xu@intel.com> | 2012-02-29 22:15:28 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-01 15:51:36 +0000 |
commit | ba8538b3a9ecdd8d77eecd277b913c9cf96facd1 (patch) | |
tree | 49af15aabf2b9a5bb329fef3e4540a2267bd1135 | |
parent | 13cad7147ffc4140fd2cc36b3a832540748c8d38 (diff) | |
download | poky-ba8538b3a9ecdd8d77eecd277b913c9cf96facd1.tar.gz |
runqueue.py: initialize rqexe at RunQueue's init function
Sometimes user stops the build before runqueue is established,
for example, at the stage of running add_unresolved() function. This
will cause RunQueue to use rqexe field in finish_runqeue() before
initialized. This will cause endless print of "Running idle function"
if use process server.
This commit initialize rqexe variable in RunQueue's init function,
and add a judgement in finish_runqueue().
(Bitbake rev: 59f817723172092a87738c79f555e605f55ea375)
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/runqueue.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index d4b2cd49aa..f1883d78fe 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
@@ -779,6 +779,8 @@ class RunQueue: | |||
779 | # For disk space monitor | 779 | # For disk space monitor |
780 | self.dm = monitordisk.diskMonitor(cfgData) | 780 | self.dm = monitordisk.diskMonitor(cfgData) |
781 | 781 | ||
782 | self.rqexe = None | ||
783 | |||
782 | def check_stamps(self): | 784 | def check_stamps(self): |
783 | unchecked = {} | 785 | unchecked = {} |
784 | current = [] | 786 | current = [] |
@@ -996,6 +998,9 @@ class RunQueue: | |||
996 | return retval | 998 | return retval |
997 | 999 | ||
998 | def finish_runqueue(self, now = False): | 1000 | def finish_runqueue(self, now = False): |
1001 | if not self.rqexe: | ||
1002 | return | ||
1003 | |||
999 | if now: | 1004 | if now: |
1000 | self.rqexe.finish_now() | 1005 | self.rqexe.finish_now() |
1001 | else: | 1006 | else: |