[bitbake-devel] [PATCH 1/1] bitbake: cooker: clear up state on stateShutdown command
Alex DAMIAN
alexandru.damian at intel.com
Tue Sep 10 15:48:01 UTC 2013
From: Alexandru DAMIAN <alexandru.damian at intel.com>
On resident bitbake server, a stateShutdown command (first
Ctrl-C in client) will leave the server in an unusable state.
This patch forces the server to reload data and begin
processing commands again, coping correctly with Ctrl-C commands.
Signed-off-by: Alexandru DAMIAN <alexandru.damian at intel.com>
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index c3721aa..42eec2c 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1101,6 +1101,7 @@ class BBCooker:
rq.finish_runqueue(True)
elif self.state == state.shutdown:
rq.finish_runqueue(False)
+ self.state = state.initial
failures = 0
try:
retval = rq.execute_runqueue()
@@ -1191,7 +1192,7 @@ class BBCooker:
if self.state == state.running:
return
- if self.state in (state.shutdown, state.stop):
+ if self.state == state.stop:
self.parser.shutdown(clean=False, force = True)
sys.exit(1)
--
1.8.1.2
More information about the bitbake-devel
mailing list