summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-20 09:38:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-20 09:42:31 +0100
commit9b8ae6ba4525a63ba18b9e0e85cf0fb9f2a670f1 (patch)
tree1c136fe051dcc349d686aae3950e5293d311341b
parent4a8fe7fc997c47b0b10315b0e63f89f7d6342acf (diff)
downloadopenembedded-core-9b8ae6ba4525a63ba18b9e0e85cf0fb9f2a670f1.tar.gz
openembedded-core-9b8ae6ba4525a63ba18b9e0e85cf0fb9f2a670f1.tar.bz2
openembedded-core-9b8ae6ba4525a63ba18b9e0e85cf0fb9f2a670f1.zip
bitbake/server: Raise a shutdown event if we're seeing exceptions
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r--bitbake/lib/bb/server/none.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/server/none.py b/bitbake/lib/bb/server/none.py
index e28aa8d7d7..14915d9737 100644
--- a/bitbake/lib/bb/server/none.py
+++ b/bitbake/lib/bb/server/none.py
@@ -102,7 +102,7 @@ class BBUIEventQueue:
def queue_event(self, event):
self.eventQueue.append(event)
- def system_quit( self ):
+ def system_quit( self ):
bb.event.unregister_UIHhandler(self.EventHandle)
class BitBakeServer():
@@ -140,6 +140,7 @@ class BitBakeServer():
except:
import traceback
traceback.print_exc()
+ self.commands.runCommand(["stateShutdown"])
pass
if nextsleep is not None:
#print "Sleeping for %s (%s)" % (nextsleep, delay)