diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-20 09:38:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-20 09:42:31 +0100 |
commit | 9b8ae6ba4525a63ba18b9e0e85cf0fb9f2a670f1 (patch) | |
tree | 1c136fe051dcc349d686aae3950e5293d311341b | |
parent | 4a8fe7fc997c47b0b10315b0e63f89f7d6342acf (diff) | |
download | poky-9b8ae6ba4525a63ba18b9e0e85cf0fb9f2a670f1.tar.gz |
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.py | 3 |
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: | |||
102 | def queue_event(self, event): | 102 | def queue_event(self, event): |
103 | self.eventQueue.append(event) | 103 | self.eventQueue.append(event) |
104 | 104 | ||
105 | def system_quit( self ): | 105 | def system_quit( self ): |
106 | bb.event.unregister_UIHhandler(self.EventHandle) | 106 | bb.event.unregister_UIHhandler(self.EventHandle) |
107 | 107 | ||
108 | class BitBakeServer(): | 108 | class BitBakeServer(): |
@@ -140,6 +140,7 @@ class BitBakeServer(): | |||
140 | except: | 140 | except: |
141 | import traceback | 141 | import traceback |
142 | traceback.print_exc() | 142 | traceback.print_exc() |
143 | self.commands.runCommand(["stateShutdown"]) | ||
143 | pass | 144 | pass |
144 | if nextsleep is not None: | 145 | if nextsleep is not None: |
145 | #print "Sleeping for %s (%s)" % (nextsleep, delay) | 146 | #print "Sleeping for %s (%s)" % (nextsleep, delay) |