]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/server: Raise a shutdown event if we're seeing exceptions
authorRichard Purdie <rpurdie@linux.intel.com>
Fri, 20 Aug 2010 08:38:24 +0000 (09:38 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 20 Aug 2010 08:42:31 +0000 (09:42 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/server/none.py

index e28aa8d7d734edb1a1456dc1c317d937569ca146..14915d9737aab8ca7362385e91bdfb7ff663fa6e 100644 (file)
@@ -102,7 +102,7 @@ class BBUIEventQueue:
     def queue_event(self, event):
         self.eventQueue.append(event)
 
-    def system_quit( self ):\r
+    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)