diff options
author | Enrico Scholz <enrico.scholz@sigma-chemnitz.de> | 2023-04-16 11:18:57 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-20 12:36:18 +0100 |
commit | 66131fa6a3e12c28710d09e1dbf3c03f2981280d (patch) | |
tree | 31e2ae621c3890ea546356c170c901b6cef6b253 | |
parent | e602963dfd505eef08702366383358d29ee20c4d (diff) | |
download | bitbake-contrib-66131fa6a3e12c28710d09e1dbf3c03f2981280d.tar.gz |
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 <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/cooker.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |