[bitbake-devel] [PATCH 03/17] cooker: terminate each process when quitting recipe parsing

Dongxiao Xu dongxiao.xu at intel.com
Wed Mar 21 12:55:07 UTC 2012


In some cases (e.x., Hob), users may quit the GUI when bitbake server
is doing the recipe parsing. In this case, we will see the Hob
command line hang and could not return to shell (Ctrl+C doesn't work).

The fix is to terminate the process when exiting the parsing.

This fixes [YOCTO #2142]

Signed-off-by: Dongxiao Xu <dongxiao.xu at intel.com>
---
 lib/bb/cooker.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 1fd2c13..a000f72 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1603,6 +1603,7 @@ class CookerParser(object):
 
             self.parser_quit.cancel_join_thread()
             for process in self.processes:
+                process.terminate()
                 self.parser_quit.put(None)
 
             self.jobs.cancel_join_thread()
-- 
1.7.4.1





More information about the bitbake-devel mailing list