From patchwork Wed Mar 21 12:55:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel, 03/17] cooker: terminate each process when quitting recipe parsing Date: Wed, 21 Mar 2012 12:55:07 -0000 From: Dongxiao Xu X-Patchwork-Id: 23979 Message-Id: <570fcedf96848b38ae13ff68e90d9a7987bfced7.1332334068.git.dongxiao.xu@intel.com> To: bitbake-devel@lists.openembedded.org 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 --- 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()