From 66131fa6a3e12c28710d09e1dbf3c03f2981280d Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sun, 16 Apr 2023 11:18:57 +0200 Subject: cooker: do not abort on single ctrl-c After b7ed7e9a815c4e10447fd499508be3dbb47f06e8 bitbake aborts immediately when a single ctrl-c is pressed. Patch restores the previous behavior where a single ctrl-c waits for active tasks to finish. https://bugzilla.yoctoproject.org/show_bug.cgi?id=15094 Signed-off-by: Enrico Scholz Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- lib/bb/cooker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index c8ff3ce08..f33bca4f8 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1764,9 +1764,9 @@ class BBCooker: def shutdown(self, force=False): if force: self.state = state.forceshutdown + bb.event._should_exit.set() else: self.state = state.shutdown - bb.event._should_exit.set() if self.parser: self.parser.shutdown(clean=False) -- cgit 1.2.3-korg